Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 496 Bytes

File metadata and controls

19 lines (14 loc) · 496 Bytes
### Install the LangGraph Python SDK
<InstallPythonSDK />
### Wire read-only agent context into your graph
`useAgentContext` publishes read-only UI values through
`CopilotKitMiddleware`. Attach the middleware to the agent and describe
how the model should use the frontend-supplied context in the system
prompt.

<DemoCode file="src/agents/readonly_state_agent_context.py" region="agent-context-setup" />