chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<Steps>
|
||||
<Step>
|
||||
### Install the LangGraph Python SDK
|
||||
|
||||
<InstallPythonSDK />
|
||||
|
||||
</Step>
|
||||
<Step>
|
||||
### Wire CopilotKit middleware into your graph
|
||||
|
||||
Programmatic control (`copilotkit.runAgent`, `agent.subscribe`,
|
||||
`agent.addMessage`) drives runs through the same agent your chat UI
|
||||
uses, so the backend wiring is the same one-line `CopilotKitMiddleware`
|
||||
setup.
|
||||
|
||||
<DemoCode file="src/agents/frontend_tools.py" region="middleware" />
|
||||
|
||||
For the headless `useInterrupt` pattern, also use LangGraph's native
|
||||
`interrupt(...)` inside a graph node and resume with
|
||||
`forwardedProps: { command: { resume, interruptEvent } }` from the
|
||||
frontend.
|
||||
|
||||
</Step>
|
||||
</Steps>
|
||||
Reference in New Issue
Block a user