Files
copilotkit__copilotkit/showcase/integrations/claude-sdk-python/docs/setup/programmatic-control-setup.mdx
Tyler Slaton 77a1df2593 fix: wire Claude SDK demo integrations for the quickstart docs
Align the claude-sdk-python and claude-sdk-typescript demo integrations behind
the published quickstarts: move the @region markers used for doc snippet
extraction, add the state-streaming and weather-tool snippet files, and add
setup-doc content. Runtime alignment: the TS agent handlers consistently emit
text/event-stream; the streaming snippets emit a fresh STATE_SNAPSHOT per delta
and drop the undeclared partial-json dependency.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-08 13:35:00 -07: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>