Skip to content

docs(streaming): add stream_final_turn_only documentation#768

Open
zhifanl wants to merge 1 commit intostrands-agents:mainfrom
zhifanl:feat/stream-final-turn-only-docs
Open

docs(streaming): add stream_final_turn_only documentation#768
zhifanl wants to merge 1 commit intostrands-agents:mainfrom
zhifanl:feat/stream-final-turn-only-docs

Conversation

@zhifanl
Copy link
Copy Markdown

@zhifanl zhifanl commented Apr 20, 2026

Motivation

Description

Add documentation for the new stream_final_turn_only parameter on Agent.stream_async(). This parameter allows callers to suppress intermediate turn text events and only receive the final answer, which is useful for production chat UIs and SSE endpoints.

The new section is added to the async-iterators page with a before/after code example and use case descriptions.

Resolves: #2055

Related Issues

SDK PR: strands-agents/sdk-python#2104, strands-agents/sdk-python#2104
Feature request: strands-agents/sdk-python#2055

Type of Change

  • New content
  • Explanation of the buffering behavior and what events pass through
  • Before/after code example showing usage with and without the parameter
  • Use case descriptions for when this is useful

Checklist

  • I have read the CONTRIBUTING document
  • My changes follow the project's documentation style
  • I have tested the documentation locally using npm run dev
  • Links in the documentation are valid and working

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Add documentation for the new stream_final_turn_only parameter
on Agent.stream_async(). This parameter allows callers to suppress
intermediate turn text events and only receive the final answer,
which is useful for production chat UIs and SSE endpoints.

The new section is added to the async-iterators page with a
before/after code example and use case descriptions.

Resolves: #2055
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