Enum AIFinishReason
A normalized provider response termination reason. Errors still fail the run.
public enum AIFinishReason
Fields
ContentFilter = 4The provider reported filtering or refusal.
MaxTokens = 2The provider reached its output token limit.
Other = 5The provider reported a reason without a common equivalent.
Stop = 1The provider completed its response normally.
ToolCalls = 3The provider requested tool execution.
Unknown = 0The provider did not report a termination reason.