Anthropic Streaming & Batches
Implements high-performance streaming for real-time UIs and the Message Batches API for cost-effective bulk processing.
This skill provides standardized implementation patterns for Anthropic's advanced messaging workflows within Claude Code. It enables developers to integrate real-time Server-Sent Events (SSE) for interactive chat interfaces and leverages the Message Batches API to process up to 100,000 requests asynchronously at a 50% cost reduction. With detailed templates for both Python and TypeScript SDKs, it covers complex scenarios such as incremental tool-use streaming, batch status polling, and error handling for large-scale AI data processing tasks.
Características Principales
01Incremental tool-use streaming for Python and TypeScript
02Real-time SSE event handling for fluid streaming responses
032,372 GitHub stars
0450% cost-optimized bulk processing via Message Batches API
05Asynchronous batch management and results retrieval patterns
06Comprehensive reference for SSE event types and error recovery
Casos de Uso
01Executing high-volume document summarization or data extraction at half cost
02Developing complex agents that stream partial tool inputs for faster interactivity
03Building interactive AI chat interfaces that require real-time text delivery