Replies: 1 comment
-
Same, I want to track the output of all nodes. It needs a parameter to be able to change the default node name.
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hello, this is Yoo.
I've been used
prebuilt.create_react_agent
to make agents and connected them to build multi-agent systems.It was super cool, but the thing happened when I tried to stream a result of one of the agents (which was supervisor agent in my case). I wrote a streaming code with
stream_mode="messages"
to stream tokens as they are produced by the LLM. But below is the result ofchunk
&metadata
which is the output of streamingThe
langgraph_node
of metadata of all agents are the same, which is 'agent'. This is because in the code ofcreate_react_agent', the 'agent
is hardcoded as the name of llm calling node. So I was not able to distinguish the chunk output of each agent by node name.By the way, there is
name
parameter which is the name of graph of agent. But it does not ensure in this kind of case. Since I'm not familiar withlanggraph
enough, there can be the reason why the code is written this way. And also there might be some better ways to LLM node of each agent's graph. That's why I need maintainer's advice.If this makes sense and it's judge that new feature is needed for this case,
I really hope to get a chance to request a PR and receive some feedbacks! 😃
Best Regrads,
Beta Was this translation helpful? Give feedback.
All reactions