Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

199 pages for streaming.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

overview Claude Developer Platform · in the page build-with-claude/claude-models-on-google-cloud/overview …| | **Streaming** | `"stream": true` in the request body… claude-on-amazon-bedrock-legacy Claude Developer Platform · in the page build-with-claude/claude-on-amazon-bedrock-legacy …ck), which uses the Messages API at `/anthropic/v1/messages` with SSE streaming. For an Anthropic-operated alternative with AWS Marketplace billing and typically same-day feature access, see [Claude P… claude-platform-on-aws Claude Developer Platform · in the page build-with-claude/claude-platform-on-aws …tended-thinking) work with the same parameters as the Claude API. * **Streaming:** Full SSE streaming support for real-time responses. * **Batch processing:** Submit batch requests for high-throughput… sent_count = len(messages sent in the compaction request) Claude Developer Platform · in the page build-with-claude/compaction …le-5-1#tell-the-model-what-to-preserve-in-compaction-summaries). ### Streaming The compaction block streams differently from text blocks. You receive a `content_block_start` event, followed by a sin… compaction-threshold Claude Developer Platform · in the page build-with-claude/compaction-threshold …le-5-1#tell-the-model-what-to-preserve-in-compaction-summaries). ### Streaming The compaction block streams differently from text blocks. You receive a `content_block_start` event, followed by a sin… context-editing Claude Developer Platform · in the page build-with-claude/context-editing …8, "cleared_input_tokens": 50000 } ] } } ``` For streaming responses, the context edits are included in the final `message_delta` event: ```json Streaming Response { "type": "m… effort Claude Developer Platform · in the page build-with-claude/effort …m, and [stream](https://platform.claude.com/docs/en/build-with-claude/streaming) the response. To turn off up-front thinking, send `thinking: {"type": "between_tools"}` instead of `"disabled"`. It’s… extended-thinking Claude Developer Platform · in the page build-with-claude/extended-thinking …ding thinking blocks and the response shape, the `display` parameter, streaming, thinking with tool use, and encryption, see the [thinking overview](https://platform.claude.com/docs/en/build-with-clau… fallback-credit Claude Developer Platform · in the page build-with-claude/fallback-credit …w Anthropic(); const request: Anthropic.Beta.MessageCreateParamsNonStreaming = { model: "claude-fable-5", max_tokens: 1024, messages: [{ role: "user", content: "Hello, Claude" }], b… fast-mode Claude Developer Platform · in the page build-with-claude/fast-mode …per second (OTPS), not time to first token (TTFT) * Compatible with [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming), where the OTPS gain is most visible ## Basic usage… handling-stop-reasons Claude Developer Platform · in the page build-with-claude/handling-stop-reasons …del="claude-opus-5-5", max_tokens=20000, # Python SDK requires streaming for max_tokens above ~21k messages=[ {"role": "user", "content": "Large input that uses most of context… message-threads Claude Developer Platform · in the page build-with-claude/message-threads …ne on the last block, so the request stays within the limit of 4. ## Streaming Threads work with [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming). The response `id` arriv… mid-conversation-effort-example Claude Developer Platform · in the page build-with-claude/mid-conversation-effort-example …nd # Tool input arrives as a Hash or as a raw JSON string from the streaming # accumulator; normalize either shape to a string-keyed Hash. def parse_tool_input(raw) return raw.transform_key… overview Claude Developer Platform · in the page build-with-claude/overview …| | [Streaming refusals](https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/handle-streaming-refusals)… preserved-thinking Claude Developer Platform · in the page build-with-claude/preserved-thinking …d block in `input_transformations` (on the `message_start` event when streaming) with `reason: "prefix_binding_mismatch"`. It’s a stopgap with an [output-token cost](https://platform.claude.com/docs/e… Request 2 caches its request content (not the response) Claude Developer Platform · in the page build-with-claude/prompt-caching …fields, within `usage` in the response (or `message_start` event if [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)): * `cache_creation_input_tokens`: Number of tokens w… prompting-claude-fable-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5 …s encounter when adjusting to Claude Fable 5. Adjust client timeouts, streaming, and user-facing progress indicators before migrating, and consider restructuring harnesses to check on runs asynchronou… prompting-claude-sonnet-5-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-sonnet-5-5 …m, and [stream](https://platform.claude.com/docs/en/build-with-claude/streaming) the response. * Reserve `xhigh` and `max` for work where you’ve measured a quality gain, because thinking and replies g… refusals-and-fallback Claude Developer Platform · in the page build-with-claude/refusals-and-fallback …at some tool-using responses include between tool calls. </Note> ### Streaming On a streaming request, the retry occurs on the same stream, and nothing you have already received is invalidated. What… search-results Claude Developer Platform · in the page build-with-claude/search-results …h_result` blocks. ## Next steps <CardGroup cols={2}> <Card title="Streaming refusals" icon="lock" href="https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/handle-streaming… structured-outputs Claude Developer Platform · in the page build-with-claude/structured-outputs ….build(); } ``` </Accordion> <Accordion title="Streaming"> Structured outputs also work with streaming. As responses arrive in stream events, you need to accumulate the fu… task-budgets Claude Developer Platform · in the page build-with-claude/task-budgets …nthropicClient(); var responseUpdates = client.Beta.Messages.CreateStreaming(new MessageCreateParams { Model = Messages::Model.ClaudeOpus5_5, MaxTokens = 128000, Messages = [new… thinking Claude Developer Platform · in the page build-with-claude/thinking …thinking depth with effort, and use thinking with tools, caching, and streaming." featureMetadata: status: stable zdr: eligibility: eligible note: Excludes [Covered Models](https://platfor… thinking-steering-and-cost Claude Developer Platform · in the page build-with-claude/thinking-steering-and-cost …_tokens` to approximate the non-reasoning portion of the output. When streaming, this breakdown appears only on the final `message_delta` event. ```json { "usage": { "input_tokens": 25, "ou… thinking-tool-workflows Claude Developer Platform · in the page build-with-claude/thinking-tool-workflows …thinking output, and review the full rules for tool use, caching, and streaming. </Card> <Card title="Steering thinking" icon="compass" href="https://platform.claude.com/docs/en/build-with-claude… thinking-troubleshooting Claude Developer Platform · in the page build-with-claude/thinking-troubleshooting …s, how to configure it, and how it interacts with tools, caching, and streaming. </Card> <Card title="Errors" icon="book" href="https://platform.claude.com/docs/en/api/errors"> The full error… API usage primer for Claude Claude Developer Platform · in the page claude_api_primer …planation and examples of model IDs/the basic messages API, tool use, streaming, thinking, and nothing else. --- # API usage primer for Claude > This guide is designed to give Claude the basics of u… apple-foundation-models Claude Developer Platform · in the page cli-sdks-libraries/libraries/apple-foundation-models …odelSession` API you use for Apple’s on-device model: `respond(to:)`, streaming, guided generation, and tool calling all work the same way. Requests go directly from your app to the Claude API; Apple… overview Claude Developer Platform · in the page cli-sdks-libraries/overview …provides idiomatic interfaces, type safety, and built-in support for streaming, retries, error handling, and [OpenTelemetry tracing](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sd… csharp Claude Developer Platform · in the page cli-sdks-libraries/sdks/csharp …thOptions` method does not affect the original client or service. ## Streaming The SDK defines methods that return response “chunk” streams, where each chunk can be individually processed as soon as… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …"%+v\n", message.Content) ``` </Accordion> <Accordion title="Streaming"> ```go content := "What is a quaternion?" stream := client.Messages.NewStreaming(context.TODO(), anthropic… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …synchronous one, except most methods return `CompletableFuture`s. ## Streaming The SDK defines methods that return response “chunk” streams, where each chunk can be individually processed as soon as… php Claude Developer Platform · in the page cli-sdks-libraries/sdks/php …docs.guzzlephp.org/) is recommended because the SDK configures it for streaming with no additional setup: ```bash composer require "anthropic-ai/sdk" "guzzlehttp/guzzle:^7" ``` ## Requirements PHP… For Amazon Bedrock support Claude Developer Platform · in the page cli-sdks-libraries/sdks/python …plications. It supports both synchronous and asynchronous operations, streaming, and integrations with Amazon Bedrock, Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed), Claude… Automatically handles tool execution loop Claude Developer Platform · in the page cli-sdks-libraries/sdks/ruby …tion: Install and configure the Anthropic Ruby SDK with Sorbet types, streaming helpers, and connection pooling --- The Anthropic Ruby library provides convenient access to the Claude API from any Ru… typescript Claude Developer Platform · in the page cli-sdks-libraries/sdks/typescript …og(message.usage); // { input_tokens: 25, output_tokens: 13 } ``` ## Streaming responses The SDK provides support for streaming responses using Server-Sent Events (SSE). ```typescript const client… home Claude Developer Platform · in the page home …ifi-high" href="https://platform.claude.com/docs/en/build-with-claude/streaming"> Streaming </HomeJourneyLink> </HomeJourneyStep> <HomeJourneyStep title="Evaluat… api-and-data-retention Claude Developer Platform · in the page manage-claude/api-and-data-retention …| | [Fine-grained tool streaming](https://platform.claude.com/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming) | `/v1/messages`… sdk Claude Developer Platform · in the page manage-claude/opentelemetry/sdk …y when you read the stream with `messages.stream()` (go: `Messages.NewStreaming()`; java: `messages().createStreaming()`; csharp: `Messages.CreateStreaming()`; php: `messages->createStream()`). Spans… plugins-api Claude Developer Platform · in the page manage-claude/plugins-api …xF5sU2zV3jP6q" with client.beta.organization.plugins.versions.with_streaming_response.download( version_id, plugin_id=plugin_id, ) as response: response.stream_to_file(f"{plugin… wif-reference Claude Developer Platform · in the page manage-claude/wif-reference …essages](https://platform.claude.com/docs/en/api/messages) (including streaming and token counting), [Models](https://platform.claude.com/docs/en/api/models/list), [Managed Agents](https://platform.cl… budgets Claude Developer Platform · in the page managed-agents/budgets …stream](https://platform.claude.com/docs/en/managed-agents/events-and-streaming) you’ll see, in order: 1. A `session.thread_status_idle` event with a `stop_reason` (java, php: `stopReason`; csharp, g… choosing-an-environment Claude Developer Platform · in the page managed-agents/choosing-an-environment …istory](https://platform.claude.com/docs/en/managed-agents/events-and-streaming#list-past-events), [tool results](https://platform.claude.com/docs/en/managed-agents/tools#available-tools), the sandbox… DCF Model Rubric Claude Developer Platform · in the page managed-agents/define-outcomes …stream](https://platform.claude.com/docs/en/managed-agents/events-and-streaming). * `agent.*` events (such as messages and tool use) show progress toward the outcome. * `span.outcome_evaluation_*` ev… dreams Claude Developer Platform · in the page managed-agents/dreams …events](https://platform.claude.com/docs/en/managed-agents/events-and-streaming) to observe what the dream is reading and writing in real time. The session is archived (not deleted) when the dream rea… environments Claude Developer Platform · in the page managed-agents/environments …events](https://platform.claude.com/docs/en/managed-agents/events-and-streaming). ## Environment lifecycle * Environments persist until explicitly archived or deleted. * Each session gets its own sa… event-deltas Claude Developer Platform · in the page managed-agents/event-deltas …stream](https://platform.claude.com/docs/en/managed-agents/events-and-streaming) as buffered `agent.message` events. Each one is emitted only after the model request that produced it completes. Event… github Claude Developer Platform · in the page managed-agents/github …" href="https://platform.claude.com/docs/en/managed-agents/events-and-streaming"> Stream events and steer the agent while it opens the pull request </Card> <Card title="MCP connector" icon="l… mcp-connector Claude Developer Platform · in the page managed-agents/mcp-connector …stream](https://platform.claude.com/docs/en/managed-agents/events-and-streaming). | | `url` (csharp: `Url`; go: `URL`) | Required. The endpoint of the remote MCP server (up to 2,048 characters). See [… memory Claude Developer Platform · in the page managed-agents/memory …stream](https://platform.claude.com/docs/en/managed-agents/events-and-streaming) as ordinary `agent.tool_use` and `agent.tool_result` events for whichever tool touched the mount. ## View and edit mem…
Feedback