Files
copilotkit--copilotkit/showcase/integrations/claude-sdk-python/docs/setup/programmatic-control-setup.mdx
T
2026-07-13 12:58:18 +08:00

13 lines
484 B
Plaintext

<Steps>
<Step>
### Run Claude through an AG-UI endpoint
Programmatic control starts from the same AG-UI run boundary as the chat UI.
Wrap Claude Agent SDK once, then trigger runs from a custom UI with
`useAgent` or the AG-UI client. Inside your component, add the user
message to the agent and dispatch the run.
<DemoCode file="src/app/demos/headless-simple/chat.tsx" region="use-agent-simple" title="chat.tsx - useAgent run control" />
</Step>
</Steps>