Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 590 Bytes

File metadata and controls

21 lines (15 loc) · 590 Bytes
### Install the LangGraph Python SDK
<InstallPythonSDK />
### Wire CopilotKit middleware into your graph
Sub-agents are wired as tools on a supervisor `create_agent` call. The
supervisor's middleware list includes `CopilotKitMiddleware()` so the
delegation log slot streams back to the UI through shared state.

<DemoCode file="src/agents/subagents.py" region="subagent-setup" />

See `src/agents/subagents.py` for the canonical supervisor + three
sub-agents pattern with a live delegation log.