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.

fine-grained-tool-streaming Claude Developer Platform · title agents-and-tools/tool-use/fine-grained-tool-streaming streaming Claude Developer Platform · title build-with-claude/streaming events-and-streaming Claude Developer Platform · title managed-agents/events-and-streaming handle-streaming-refusals Claude Developer Platform · title test-and-evaluate/strengthen-guardrails/handle-streaming-refusals Streaming Input Claude Code CLI · title agent-sdk/streaming-vs-single-mode Stream responses in real-time Claude Code CLI · path agent-sdk/streaming-output Or, for the model with the same capabilities and no access approval requirement: Claude Developer Platform · in the page about-claude/models/migration-guide …fort-2025-11-24"]` from your requests. 3. **Remove fine-grained tool streaming beta header:** Fine-grained tool streaming does not require a beta header. Remove `betas=["fine-grained-tool-streaming-2… optimizing-for-cost-and-intelligence Claude Developer Platform · in the page about-claude/models/optimizing-for-cost-and-intelligence …ream responses](https://platform.claude.com/docs/en/build-with-claude/streaming) that large, treat [`stop_reason: max_tokens`](https://platform.claude.com/docs/en/build-with-claude/handling-stop-reaso… customer-support-chat Claude Developer Platform · in the page about-claude/use-case-guides/customer-support-chat …out any PII from responses. #### Reduce perceived response time with streaming When dealing with potentially lengthy responses, implementing streaming can improve user engagement and satisfaction. I… claude-api-skill Claude Developer Platform · in the page agents-and-tools/agent-skills/claude-api-skill …rfaces: * **Messages API:** The primary surface for single requests, streaming chat, tool use, batch processing, prompt caching, structured outputs, and custom agent loops * **Claude Managed Agents (… advisor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/advisor-tool …tool` and `any`, so use the prompt nudge on those models instead. ## Streaming The advisor sub-inference does not stream. The executor’s stream pauses while the advisor runs; then the full result ar… bash-tool Claude Developer Platform · in the page agents-and-tools/tool-use/bash-tool …e outputs in your application before returning them to Claude. * **No streaming:** Output reaches Claude only when your application returns the `tool_result` in the next request. ## Combining with ot… browser-use-sdk Claude Developer Platform · in the page agents-and-tools/tool-use/browser-use-sdk …, it can start a browser or computer call while the response is still streaming. To turn it on, pass `stream=True` (typescript: `stream: true`) and `run_tools_eagerly=True` (typescript: `runToolsEage… browser-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/browser-use-tool …a code execution caller in `allowed_callers`, the `fine-grained-tool-streaming-2025-05-14` beta header on the request, a `tool_choice` of type `tool` naming `browser` or a member, or a second browser… code-execution-tool Claude Developer Platform · in the page agents-and-tools/tool-use/code-execution-tool …ter you send back the `tool_result` blocks for your client tools. ## Streaming With [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) enabled (`"stream": true`), you’ll re… computer-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/computer-use-tool …`strict`, `input_examples`, `defer_loading` placement, `tool_choice`, streaming, and caller restrictions, see [Client toolsets](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-refer… Process results programmatically Claude Developer Platform · in the page agents-and-tools/tool-use/programmatic-tool-calling …## Next steps <CardGroup cols={2}> <Card title="Fine-grained tool streaming" icon="bolt" href="https://platform.claude.com/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming"> Strea… server-tools Claude Developer Platform · in the page agents-and-tools/tool-use/server-tools …ode execution versions alongside these web tool versions. </Note> ## Streaming server-tool events Server-tool events stream as part of the normal server-sent events (SSE) flow. A `server_tool_use` b… tool-reference Claude Developer Platform · in the page agents-and-tools/tool-use/tool-reference …-tools/tool-use/programmatic-tool-calling)). * The `fine-grained-tool-streaming-2025-05-14` beta header. When you stream, each member’s `input` arrives as one complete `input_json_delta`. * A `tool_ch… Log at info level Claude Developer Platform · in the page agents-and-tools/tool-use/tool-runner …ake over message history when, from inside an `each_message` or `each_streaming` block, you reassign `runner.params[:messages]` or call `feed_messages`. The following pattern calls `feed_messages` bet… tool-search-tool Claude Developer Platform · in the page agents-and-tools/tool-use/tool-search-tool …I returns a 400. Put the cache breakpoint on a non-deferred tool. ## Streaming With streaming enabled, you receive tool search events as part of the stream: ```sse event: content_block_start data:… web-fetch-tool Claude Developer Platform · in the page agents-and-tools/tool-use/web-fetch-tool …/docs/en/agents-and-tools/tool-use/tool-use-with-prompt-caching). ## Streaming With streaming enabled, fetch events are part of the stream with a pause during content retrieval: ```sse Output event… web-search-tool Claude Developer Platform · in the page agents-and-tools/tool-use/web-search-tool …/docs/en/agents-and-tools/tool-use/tool-use-with-prompt-caching). ## Streaming With streaming enabled, you receive search events as part of the stream. There is a pause while the search runs: ```ss… Beta Claude Developer Platform · in the page api/beta …of the tool input JSON schema. - `eager_input_streaming: optional boolean or null` Enable eager input streaming for this tool. When true, tool input pa… Messages Claude Developer Platform · in the page api/beta/messages …of the tool input JSON schema. - `eager_input_streaming: optional boolean or null` Enable eager input streaming for this tool. When true, tool input pa… Batches Claude Developer Platform · in the page api/beta/messages/batches …the tool input JSON schema. - `eager_input_streaming: optional boolean or null` Enable eager input streaming for this tool. When true, tool inpu… Create a Message Batch Claude Developer Platform · in the page api/beta/messages/batches/create …the tool input JSON schema. - `eager_input_streaming: optional boolean or null` Enable eager input streaming for this tool. When true, tool inpu… Retrieve Message Batch results Claude Developer Platform · in the page api/beta/messages/batches/results …f the tool input JSON schema. - `eager_input_streaming: optional boolean or null` Enable eager input streaming for this tool. When true, tool input… Count tokens in a Message Claude Developer Platform · in the page api/beta/messages/count_tokens …of the tool input JSON schema. - `eager_input_streaming: optional boolean or null` Enable eager input streaming for this tool. When true, tool input pa… Create a Message Claude Developer Platform · in the page api/beta/messages/create …of the tool input JSON schema. - `eager_input_streaming: optional boolean or null` Enable eager input streaming for this tool. When true, tool input pa… Events Claude Developer Platform · in the page api/beta/sessions/events …etaManagedAgentsDeltaType` When set, this connection also receives streaming deltas (`event_start`, `event_delta`) while an event is being produced, before the event itself arrives. Deltas are best… Stream Events Claude Developer Platform · in the page api/beta/sessions/events/stream …etaManagedAgentsDeltaType` When set, this connection also receives streaming deltas (`event_start`, `event_delta`) while an event is being produced, before the event itself arrives. Deltas are best… Events Claude Developer Platform · in the page api/beta/sessions/threads/events …etaManagedAgentsDeltaType` When set, this connection also receives streaming deltas (`event_start`, `event_delta`) while an event is being produced, before the event itself arrives. Deltas are best… Stream Session Thread Events Claude Developer Platform · in the page api/beta/sessions/threads/events/stream …etaManagedAgentsDeltaType` When set, this connection also receives streaming deltas (`event_start`, `event_delta`) while an event is being produced, before the event itself arrives. Deltas are best… errors Claude Developer Platform · in the page api/errors …the response starts. For long-running Messages API requests, use the [streaming Messages API](https://platform.claude.com/docs/en/build-with-claude/streaming). See [Long requests](https://platform.cla… Messages Claude Developer Platform · in the page api/messages …ream` for you and accumulates the events into the final message. See [Streaming with SDKs](https://platform.claude.com/docs/en/build-with-claude/streaming?sdk_languages=http#streaming-with-sdks) for a… Batches Claude Developer Platform · in the page api/messages/batches …ream` for you and accumulates the events into the final message. See [Streaming with SDKs](https://platform.claude.com/docs/en/build-with-claude/streaming?sdk_languages=http#streaming-with-sdks) for a… Create a Message Batch Claude Developer Platform · in the page api/messages/batches/create …ream` for you and accumulates the events into the final message. See [Streaming with SDKs](https://platform.claude.com/docs/en/build-with-claude/streaming?sdk_languages=http#streaming-with-sdks) for a… Retrieve Message Batch results Claude Developer Platform · in the page api/messages/batches/results …uent request to let the model continue. * `"refusal"`: when streaming classifiers intervene to handle potential policy violations * `"model_context_window_exceeded"`: we exceeded t… Count tokens in a Message Claude Developer Platform · in the page api/messages/count_tokens …important aspects of the tool input JSON schema. - `eager_input_streaming: optional boolean or null` Enable eager input streaming for this tool. When true, tool input parameters will be s… Create a Message Claude Developer Platform · in the page api/messages/create …ream` for you and accumulates the events into the final message. See [Streaming with SDKs](https://platform.claude.com/docs/en/build-with-claude/streaming?sdk_languages=http#streaming-with-sdks) for a… spans Claude Developer Platform · in the page api/opentelemetry/spans …the 5-minute cache. Only on the spans for Messages API requests. On a streaming response’s SDK span, only the tokens written before the first output token. | | `anthropic.usage.cache… overview Claude Developer Platform · in the page api/overview …est and response handling * Built-in retry logic and error handling * Streaming support * Request timeouts and connection management For a list of client SDKs, see [SDKs, CLI, and libraries](https://… versioning Claude Developer Platform · in the page api/versioning …ror types * Add new variants to enum-like output values (for example, streaming event types) Generally, if you are using the API as documented in this reference, Anthropic will not break your usage.… Message Batches API Claude Developer Platform · in the page build-with-claude/batch-processing …om anthropic.types.message_create_params import MessageCreateParamsNonStreaming from anthropic.types.messages.batch_create_params import Request client = anthropic.Anthropic() message_batch =… cache-diagnostics Claude Developer Platform · in the page build-with-claude/cache-diagnostics …}} puts "cache_miss_reason: #{type}" end ``` </CodeGroup> ## Streaming In streaming responses, `diagnostics` appears on the `message_start` event. <CodeGroup> ```bash cURL # Turn 2: str… citations Claude Developer Platform · in the page build-with-claude/citations …"end_block_index": 1 } ] } ] } ``` ### Streaming support For streaming responses, citations arrive as a `citations_delta` delta type inside `content_block_delta` events… claude-in-amazon-bedrock Claude Developer Platform · in the page build-with-claude/claude-in-amazon-bedrock …-mantle.{region}.api.aws/anthropic/v1/messages`. It uses standard SSE streaming and the same request body shape as the Claude API. Pass the region when you create the client, or set the `AWS_REGION`… anthropic-managed Claude Developer Platform · in the page build-with-claude/claude-models-on-google-cloud/anthropic-managed …`anthropic-version` and `anthropic-beta` headers * The request body * Streaming * The response Code samples elsewhere in this documentation create the Claude API client and read an API key. To run on… google-managed Claude Developer Platform · in the page build-with-claude/claude-models-on-google-cloud/google-managed …ged) go to an Agent Platform endpoint URL that ends in `:rawPredict`. Streaming requests use `:streamRawPredict` instead. A request is nearly identical to a [Messages API](https://platform.claude.com…
Feedback