Skip to content

add partial text events#271

Open
rishair wants to merge 2 commits intoisaacs:mainfrom
rishair:main
Open

add partial text events#271
rishair wants to merge 2 commits intoisaacs:mainfrom
rishair:main

Conversation

@rishair
Copy link

@rishair rishair commented Apr 21, 2024

Problem

When streaming strings to the parser, it can be useful to receive partial text events to get results before a full textNode is returned.

Use Case

Especially useful when receiving tokens from an LLM and wanting to stream the XML response as it appears.

Tests

  • test passes with the patch
  • test fails without the patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant