Skip to content

Conversation

WOONBE
Copy link
Contributor

@WOONBE WOONBE commented Jun 16, 2025

As mentioned in the issue, the MessageAggregator currently does not retain toolCalls when processing streaming API responses, causing them to be absent from the final AssistantMessage.

This PR includes the following changes:

  • Enhances the MessageAggregator to correctly aggregate toolCalls from all chunks in a stream.
  • Adds a corresponding unit test to verify the fix and prevent regressions.

Fixed #3366

Signed-off-by: WOONBE <[email protected]>
@ilayaperumalg ilayaperumalg self-assigned this Jun 16, 2025
@ilayaperumalg ilayaperumalg added this to the 1.1.x milestone Jun 16, 2025
@ilayaperumalg
Copy link
Member

@WOONBE Thanks for the PR. Rebased and merged as df90b9c. Back ported into 1.0.x as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Streaming mode AssistantMessage does not retain toolCalls, causing issues with tool confirmation workflows
2 participants