langchain-ai / langgraph-studio

Desktop app for prototyping and debugging LangGraph applications locally.
https://studio.langchain.com
1.63k stars 110 forks source link

Hierarchical agent teams do not display their respective tools #123

Closed colindaniels closed 1 week ago

colindaniels commented 1 week ago

When using an agent "supervisor" or "hierarchical agent team" structure, the supervisor and its child agent nodes display correctly in LangGraph Studio. However, those same children agent node's do not display their respective tools. This is because they are not directly added as a tool node to the root graph, but instead are regular tools that are inserted directly to the agent node which is then passed up to the parent. If I add the tools as tool nodes to the root workflow graph, it separates the tools from the agent and defeats the purpose of modular ReAct agents acting independently, so it would be nice to see this displayed visually if possible.

colindaniels commented 1 week ago

Had a fundamentally incorrect understanding on how ReAct agents should be used in LangGraph. 'createReactAgent' should only be used for more simple agents. For more advanced ReAct agents, especially ones that need interruption between tool calls, adding separate tool nodes is standard (and show's up in LangGraph Studio). Probably not possible, but would be nice if simpler 'createReactAgent' and their tools showed up and logged in studio.