Replies: 1 comment 1 reply
-
did you solve it ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I built a multi-agent system using only nodes and edges. Here's an example:
Then I used astream() to observe the token output of the LLM. However, it streamed all tokens — even from the intent_router node, which I don't want. Here's what I tried:
So I changed the stream_mode to "custom", and had to modify the code of chatbot and generate_document like this:
It works well, but it’s a bit inconvenient.
❓My Questions:
Is there a better way to achieve token-level streaming only from certain nodes, like chatbot and generate, while skipping nodes like intent_router?
How can I avoid this issue when using create_react_agent() and create_supervisor()?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions