You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use stream_mode="messages" with a checkpointer and stable thread_id, the stream first emits old Human/AI messages restored from persistence, and only after that it starts streaming new LLM tokens. I’d like to stream only the new tokens for the current turn. The only workaround I see is filtering out already-known message IDs, but that feels inconvenient. Is there a built-in way to avoid replaying persisted messages and stream only new output?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When I use stream_mode="messages" with a checkpointer and stable thread_id, the stream first emits old Human/AI messages restored from persistence, and only after that it starts streaming new LLM tokens. I’d like to stream only the new tokens for the current turn. The only workaround I see is filtering out already-known message IDs, but that feels inconvenient. Is there a built-in way to avoid replaying persisted messages and stream only new output?
Beta Was this translation helpful? Give feedback.
All reactions