Documentation
¶
Overview ¶
Package main demonstrates real-time streaming from sub-agents to parent agents using Claude 3.5 Sonnet with extended thinking enabled.
This demo shows:
- Parent agent delegating to a specialized math sub-agent
- Claude's extended thinking process streamed in real-time
- Tool calls (calculator) streamed as they happen
- Progressive content generation instead of waiting for final result
Requirements:
- ANTHROPIC_API_KEY environment variable
Usage:
export ANTHROPIC_API_KEY=your_api_key_here go run streaming_demo.go
Click to show internal directories.
Click to hide internal directories.