Skip to content

docs(unstable-v2): note that tool text can stream like message text - #2469

Merged
benbrandt merged 1 commit into
mainfrom
docs/tool-call-text-streaming
Oct 23, 2026
Merged

benbrandt merged 1 commit into
mainfrom
docs/tool-call-text-streaming

Conversation

@benbrandt

Copy link
Copy Markdown
Member

The v2 tool-call docs describe tool_call_content_chunk as streaming "complete" content items, which reads as discouraging agents from streaming a tool's text in pieces the way they stream message text. The append rules don't require that: each chunk appends one ToolCallContent item, exactly as message chunks append one content item, and clients can present adjacent text items as one continuous text.

This drops "complete" from the prompt-lifecycle walkthrough and adds a non-normative note to the Streaming Content section of the tool-calls page, in both the published and draft v2 pages. It adds no requirement for clients or agents. Display-only terminal bytes remain terminal_output_chunk, which the page already says.

The v2 tool-call-updates RFD is left as written.

The v2 tool-call docs described tool_call_content_chunk as streaming
"complete" content items, which read as discouraging agents from streaming
a tool's text in pieces the way they stream message text. Nothing in the
append rules requires that: a chunk appends one item, and clients can present
adjacent text items as continuous text, as they do for messages.

Drop "complete" from the prompt-lifecycle walkthrough and add a
non-normative note to Streaming Content, in both the published and draft
v2 pages.
@benbrandt
benbrandt requested a review from a team as a code owner October 23, 2026 21:35
@benbrandt
benbrandt enabled auto-merge (squash) October 23, 2026 21:37
@benbrandt
benbrandt merged commit c100a28 into main Oct 23, 2026
11 checks passed
@benbrandt
benbrandt deleted the docs/tool-call-text-streaming branch October 23, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant