FinishReasonType
Allowed values for gen_ai.response.finish_reasons. The standard set covers content_filter, length, stop, and tool_calls; use Custom for vendor-specific reasons.
Inheritors
Types
Link copied to clipboard
Generation stopped because content was filtered.
Link copied to clipboard
Vendor-specific finish reason carried as a verbatim string.
Link copied to clipboard
Generation stopped because the maximum length was reached.
Link copied to clipboard
Generation stopped naturally (end of response).
Link copied to clipboard
Generation stopped because the model emitted tool calls.