finish reason
An enumerated field returned by the AI SDK after each generation completes, used to inform the caller why generation terminated. Common values include stop, length, content-filter, tool-calls, error, and other, with the addition of interrupted to indicate the stream has ended but no provider completion signal was received.
Timeline (last 90 days)
AI SDK 2.0.81 introduces a new completion reason, interrupted, for provider streams, used for streams that end without receiving a completion signal.
finish reason is the SDK's classification of how a model response ended, with typical values including stop, length, and tool-calls.
finish reason is an enum field returned by the AI SDK after each generation ends, with common values including stop, length, content-filter, tool-calls, error, and other.
All Facts (3)
finish reason is the SDK's classification of how a model response ended, with typical values including stop, length, and tool-calls.
50%Unverifiedfinish reason is an enum field returned by the AI SDK after each generation ends, with common values including stop, length, content-filter, tool-calls, error, and other.
50%UnverifiedAI SDK 2.0.81 introduces a new completion reason, interrupted, for provider streams, used for streams that end without receiving a completion signal.
50%