Share via


AgentInvokeOptions.OnIntermediateMessage Property

Definition

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.

Applies to