mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
a07e97b224
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
20 lines
507 B
Plaintext
20 lines
507 B
Plaintext
<Steps>
|
|
<Step>
|
|
### Install the LangGraph Python SDK
|
|
|
|
<InstallPythonSDK />
|
|
|
|
</Step>
|
|
<Step>
|
|
### Wire CopilotKit middleware into your graph
|
|
|
|
Frontend tools registered with `useFrontendTool` are forwarded to your
|
|
agent at runtime. `CopilotKitMiddleware` is the bridge — drop it into
|
|
`create_agent`'s `middleware` list and the LLM sees the forwarded tool
|
|
definitions on every turn.
|
|
|
|
<DemoCode file="src/agents/frontend_tools.py" region="middleware" />
|
|
|
|
</Step>
|
|
</Steps>
|