Files
2026-07-13 12:58:18 +08:00

26 lines
753 B
Plaintext

<Steps>
<Step>
### Install the ADK + AG-UI bridge
```bash
pip install ag-ui-adk
```
</Step>
<Step>
### Add `AGUIToolset()` to your supervisor agent
Sub-agents are tools on a supervisor `LlmAgent`. The showcase uses
`google.genai.Client.models.generate_content` for each sub-agent call —
much lighter than spawning a separate `LlmAgent` + `Runner` per
delegation. Delegation events are written to `tool_context.state` and
flow back to the UI through CopilotKit's shared-state channel.
<DemoCode file="src/agents/subagents_agent.py" region="subagent-setup" />
See `src/agents/subagents_agent.py` for the supervisor + three
sub-agents pattern with a live delegation log.
</Step>
</Steps>