Files
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

20 lines
584 B
Plaintext

<Steps>
<Step>
### Install the Claude Agent SDK packages
```bash
uv add claude-agent-sdk ag-ui-claude-sdk ag-ui-protocol anthropic fastapi uvicorn python-dotenv
```
</Step>
<Step>
### Bridge Claude Agent SDK to AG-UI
Use `ClaudeAgentAdapter` from `ag_ui_claude_sdk`. The adapter receives the
AG-UI run input, emits AG-UI events back to CopilotKit, and can expose
backend tools through an in-process Claude SDK MCP server.
<DemoCode file="src/agents/claude_agent_sdk_adapter.py" region="claude-agent-sdk-agent-setup" />
</Step>
</Steps>