AgentResponseUpdate.FinishReason Property

Definition

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).

Applies to