mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
36020b061f
Two clonable starter templates showing CopilotKit driving a Claude Agent SDK agent over AG-UI, mirroring the langgraph-python showcase (todos canvas, charts, flight cards, dynamic dashboards, HITL, theme, threads drawer). Each agent is a thin, idiomatic layer on the official ag-ui-claude-sdk / @ag-ui/claude-agent-sdk adapters: three backend tools (query_data, search_flights, generate_a2ui) live in per-tool modules and are wired into ClaudeAgentAdapter, while the shared todo board is driven by the adapter's built-in ag_ui_update_state tool. The default model is claude-sonnet-5 and local dev uses a real ANTHROPIC_API_KEY (matching the official AG-UI dojo). Both instances are registered in the _parity manifest so their frontends stay synced with the langgraph-python north-star. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
19 lines
682 B
Bash
19 lines
682 B
Bash
# --- Claude Agent SDK (Python) starter ---
|
|
|
|
# Your Anthropic API key (required). Get one at https://console.anthropic.com/
|
|
ANTHROPIC_API_KEY=
|
|
|
|
# Claude model to use (optional; this is the default).
|
|
CLAUDE_MODEL=claude-sonnet-5
|
|
|
|
# URL the Next.js runtime uses to reach the agent (optional; this is the default).
|
|
AGENT_URL=http://localhost:8000
|
|
|
|
# --- CopilotKit Intelligence (optional) ---
|
|
# Set COPILOTKIT_LICENSE_TOKEN to activate the Threads drawer's live thread
|
|
# history (server + UI). Without it the drawer shows a locked state.
|
|
# COPILOTKIT_LICENSE_TOKEN=
|
|
# INTELLIGENCE_API_URL=http://localhost:4201
|
|
# INTELLIGENCE_GATEWAY_WS_URL=ws://localhost:4401
|
|
# INTELLIGENCE_API_KEY=
|