Skip to content

.Net: Bug: OnIntermediateMessage is invoked after streaming completes for AzureAIAgent, OpenAIAssistant and OpenAIResponseAgent #12789

@westey-m

Description

@westey-m

Describe the bug
OnIntermediateMessage is getting invoked with intermediate messages only after streaming completes for AzureAIAgent, OpenAIAssistant and OpenAIResponseAgent.

To Reproduce
Observe the output from an agent when invoking in streaming mode.
The text result is streamed as individual updates, but OnIntermediateMessage is only invoked with the tool calls and full messages after the result is streamed.

Expected behavior
Messages are passed to OnIntermediateMessage as soon as they are availble.

Metadata

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET codebugSomething isn't workingtriage

Type

Projects

Status

Sprint: In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions