//
Search across all documentation pages
7 pages in this section.
Understand how @anthropic-ai/sdk streams responses across Node and edge runtimes.
Install @anthropic-ai/sdk, instantiate a client, and send a typed Messages API call.
Consume message deltas with for-await loops instead of manual event listeners.
Configure fetch-based requests for Vercel Edge, Cloudflare Workers, and Deno Deploy.
Compare TextBlock, ToolUseBlock, and ThinkingBlock discriminated union types side by side.
Compare BadRequestError, RateLimitError, and APIConnectionError for typed catch blocks.
A practical checklist for typing, streaming, retries, and edge deployment with the SDK.