Skip to content

Fix ToolCallAdvisor streaming suppression#5618

Open
oleksii-tumanov wants to merge 1 commit intospring-projects:mainfrom
oleksii-tumanov:toolcall-stream-suppress-intermediate-chunks
Open

Fix ToolCallAdvisor streaming suppression#5618
oleksii-tumanov wants to merge 1 commit intospring-projects:mainfrom
oleksii-tumanov:toolcall-stream-suppress-intermediate-chunks

Conversation

@oleksii-tumanov
Copy link

Fix ToolCallAdvisor streaming suppression when streamToolCallResponses is disabled.

An intermediate tool-call iteration could leak early streaming chunks if the tool call was only present in a later chunk of the same iteration. This change suppresses output at the completed iteration level by buffering the iteration instead of filtering chunk-by-chunk.

Test

New regression test covers that case

Signed-off-by: Alex Tumanov <oleksii.tumanov@gmail.com>
@oleksii-tumanov oleksii-tumanov marked this pull request as ready for review March 17, 2026 02:10
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