AgentResponseUpdate.FinishReason 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 the reason for the agent response finishing.
public Microsoft.Extensions.AI.ChatFinishReason? FinishReason { get; set; }
member this.FinishReason : Nullable<Microsoft.Extensions.AI.ChatFinishReason> with get, set
Public Property FinishReason As Nullable(Of ChatFinishReason)
Property Value
A ChatFinishReason value indicating why the response finished (e.g., stop, length, content filter, tool calls),
or null if the finish reason is not available or not yet determined (mid-stream).