Currently reading the docs.
In multiagent setups , since there is a router mode and a lock mode
Question 1 :
I was wondering how / if accessing the agent state works in router mode for example since different agents can be chosen
So lets say i have 3 agents can I still acces the state with the given hooks in this example ?
https://docs.copilotkit.ai/coagents/generative-ui/agentic?language=TypeScript
( useCoAgentStateRender , useCoAgent )
Question 2 :
Would sequential flows also work with a router setup ?
Lets say I have a prompt 1. fetch some info 2. calculate something
which would require a sequential flow of first calling agent 1 and then agent 2... would this work if I have multiple Co-Agents added in my backend ?
or will it only pick 1 agent ?
My goal is basically to have a mult agent setup with sequential flows that can
call like
0. Supervisor decide what agent to call
- AgentA --> calll some tools
1.1 Supervisor check result - AgentB --> call some more tools
2.1 Supervisor check result - End
is this pattern achievable through router mode ?
or would it be stuck like this
- AgentA --> calll some tools
- End ( Agent B never called because only ever 1 agent is selected and run)
In that case would I need to create a hirarchial aproach with a single agent ( through lock) mode
that achieves sequential agent flows ? In that case iam even less sure if I cann still acces the agents output / state at runtime . Any pointers appriciated .. looking for the correct high level aproach here
Currently Iam only familiar with langgraph abit .
Greetings 🙂