Answer: To enable streaming output, set `include_partial_messages` (Python) or `includePartialMessages` (TypeScript) to `true` in your options. This causes the SDK to yield `StreamEvent` messages containing raw API events as they arrive. Status: Confirmed Entry: tool/claude-code/agents-and-automation/enable-streaming-output Revision: 2 Digest: sha256:ea9f242de480f029 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:02:59Z Last changed: 2026-11-17T12:21:32Z (Delta type for text chunks: — → text_delta) Last verified: 2026-11-20T12:17:20Z Next check: 2026-11-21T12:17:20Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Python option | include_partial_messages | [1] | 2026-11-20 TypeScript option | includePartialMessages | [1] | 2026-11-20 Required value | true | [1] | 2026-11-20 Message type yielded | StreamEvent | [1] | 2026-11-20 Event type to look for | content_block_delta | [1] | 2026-11-20 Delta type for text chunks | text_delta | [1] | 2026-11-20 Sources: [1] Anthropic. "Stream responses in real-time". https://code.claude.com/docs/en/agent-sdk/streaming-output.md Role: primary. Accessed: 2026-11-20T12:17:20Z Quote: "set `include_partial_messages` (Python) or `includePartialMessages` (TypeScript) to `true` in your options" (Supports: Python option, TypeScript option, Required value) Quote: "This causes the SDK to yield `StreamEvent` messages containing raw API events as they arrive" (Supports: Message type yielded) Quote: "Look for `content_block_delta` events where `delta.type` is `text_delta`, which contain the actual text chunks" (Supports: Event type to look for, Delta type for text chunks) Published: 2026-11-20T02:53:05Z Snapshot SHA-256: 355c4b90fa6b286dd1ed7f94e08cfbcfc750e8616a7615d0e119a63e10a66309 (captured 2026-11-17T12:21:32Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-17T12:21:32Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:17:20Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:17:20Z Last attempt: 2026-11-20T12:17:20Z Notes and limitations: Extracted automatically from a single official source (section "Enable streaming output"). Related: https://latestn.com/tool/claude-code/agents-and-automation/enforce-rules-with-hooks How do I enforce rules that can't have exceptions in Claude Code using hooks? https://latestn.com/tool/claude-code/agents-and-automation/filter-hook-events How do I filter which events a Claude Code mod hook handles? https://latestn.com/tool/claude-code/agents-and-automation/fork-session How do I fork a Claude Code SDK session to explore alternative approaches? https://latestn.com/tool/claude-code/agents-and-automation/display-todo-progress-realtime How do I display Claude's todo progress in real time in my application using the Agent SDK? https://latestn.com/tool/claude-code/agents-and-automation/enable-agent-teams How do I enable agent teams in Claude Code? https://latestn.com/tool/claude-code/agents-and-automation/enable-file-checkpointing How do I enable file checkpointing in the Claude Code Agent SDK? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T12:21:32Z | changed | Delta type for text chunks: — → text_delta | [1] 2026-11-17T12:21:32Z | changed | Event type to look for: — → content_block_delta | [1] 2026-11-17T12:21:32Z | changed | Delta subtype: text_delta → — | [1] 2026-11-17T12:21:32Z | changed | Delta event type: content_block_delta → — | [1] 2026-11-13T03:02:59Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/enable-streaming-output/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/agents-and-automation/enable-streaming-output POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/enable-streaming-output with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/enable-streaming-output?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I enable streaming output in the Claude Code Agent SDK? Revision 2, last verified 2026-11-20T12:17:20Z. https://latestn.com/tool/claude-code/agents-and-automation/enable-streaming-output (accessed 2026-11-21T10:01:20Z). @misc{LatestN_tool_claude_code_agents_and_automation_enable_streaming_output_r2, title = {How do I enable streaming output in the Claude Code Agent SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/enable-streaming-output}}, note = {Revision 2; digest sha256:ea9f242de480f029; last verified 2026-11-20T12:17:20Z; accessed 2026-11-21T10:01:20Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/agents-and-automation/enable-streaming-output