Hi, I am building multi agentic system using master slave architecture where master would decide the route as per the user query. I have separate graphs for each sub agent which get compiled in master agent graph. I want to stream the output and see how states are getting modified for each agent. For ex see below code for streaming
for chunk in graph.stream(
{“foo”: “foo”},
subgraphs=True,
stream_mode=“updates”,
):
print(chunk)
Even though subgraphs=True but I am not able to get the state changes in sub agent graphs and can only see agent states defined in main master agent. I am following below repo for code modularity, each agent has separate garph, schema and prompts. Pls check src/backend/agents/orchestrator in this repo
Important : I have separate state classes for master and other agents and each agent inherits from master state class
Any help will be deeply appreciated. Thankyou