chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:58:18 +08:00
commit 6d5d58c1a9
18293 changed files with 3502153 additions and 0 deletions
@@ -0,0 +1,16 @@
First, add `CopilotKitMiddleware` to your `create_agent` call. The middleware
is what makes every CopilotKit feature on the frontend — frontend tools,
shared state, agent context, and generative UI components — visible to your
LangGraph agent on every turn.
<DemoCode file="src/agents/frontend_tools.py" region="middleware" />
<Accordions>
<Accordion title="Install the SDK">
If `copilotkit` isn't already in your project, add it so the import
above resolves. Pick the package manager that matches your project:
<InstallPythonSDK />
</Accordion>
</Accordions>