<InstallPythonSDK />
Import `CopilotKitMiddleware` and pass it to `create_agent`. This is the
single line of CopilotKit-specific setup; everything else is standard
LangGraph.
<DemoCode file="src/agents/frontend_tools.py" region="middleware" />
<InstallPythonSDK />
Import `CopilotKitMiddleware` and pass it to `create_agent`. This is the
single line of CopilotKit-specific setup; everything else is standard
LangGraph.
<DemoCode file="src/agents/frontend_tools.py" region="middleware" />