AgentInvokeOptions.OnIntermediateMessage Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a function to be called when a complete new message is generated by the agent.
public Func<Microsoft.SemanticKernel.ChatMessageContent,System.Threading.Tasks.Task>? OnIntermediateMessage { get; init; }
member this.OnIntermediateMessage : Func<Microsoft.SemanticKernel.ChatMessageContent, System.Threading.Tasks.Task> with get, set
Public Property OnIntermediateMessage As Func(Of ChatMessageContent, Task)
Property Value
Remarks
This callback is particularly useful in cases where the caller wants to receive complete messages when invoking the agent with streaming.