Skip to content

fix ToolCallAdvisor: correct per-round observations in streaming mode#6185

Open
tzolov wants to merge 1 commit into
spring-projects:mainfrom
tzolov:tool-calling-advisor-streaming-improvements
Open

fix ToolCallAdvisor: correct per-round observations in streaming mode#6185
tzolov wants to merge 1 commit into
spring-projects:mainfrom
tzolov:tool-calling-advisor-streaming-improvements

Conversation

@tzolov
Copy link
Copy Markdown
Contributor

@tzolov tzolov commented May 27, 2026

  • Refactor ToolCallAdvisor streaming to create individual observations per LLM round instead of spanning all rounds.
  • Simplifies the streaming flow by replacing publish()-based multicast with aggregateChatClientResponse().concatWith() chain.
  • Updates DefaultAroundAdvisorChain to skip outer observation for streaming ToolAdvisor instances.

Resolves #5167
Related to #6017

- Refactor ToolCallAdvisor streaming to create individual observations per LLM
  round instead of spanning all rounds.
- Simplifies the streaming flow by replacing
  publish()-based multicast with aggregateChatClientResponse().concatWith() chain.
- Updates DefaultAroundAdvisorChain to skip outer observation for streaming
  ToolAdvisor instances.

Related to spring-projects#5167 spring-projects#6017

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
@tzolov tzolov modified the milestone: 2.0.0-M8 May 27, 2026
@tzolov tzolov self-assigned this May 27, 2026
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.

Stream mode loses toolCall information and records cumulative textContent in tool calling loops

1 participant