streaming

command
v0.2.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL