Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 536 Bytes

File metadata and controls

19 lines (14 loc) · 536 Bytes
### Install the LangGraph Python SDK
<InstallPythonSDK />
### Wire CopilotKit middleware into your graph
Shared state flows between your UI and your agent through `agent.setState`
on the frontend and `state.get(...)` in your graph nodes. Attach
`CopilotKitMiddleware` to your `create_agent` call so CopilotKit-specific
state is picked up alongside your own.

<DemoCode file="src/agents/shared_state_read_write.py" region="shared-state-setup" />