ai.errors.FinishReasonError
The provider completed a turn with a terminal reason that is not a valid successful completion. This stays distinct from ParseFailed: the response may be syntactically valid but incomplete because the model exhausted its output budget. Host SDKs can map MaxTokens to their legacy `length` finish reason without treating it as a schema-validation failure.
Signature
class ai.errors.FinishReasonErrorThe provider completed a turn with a terminal reason that is not a valid
successful completion. This stays distinct from ParseFailed: the response
may be syntactically valid but incomplete because the model exhausted its
output budget. Host SDKs can map MaxTokens to their legacy length finish
reason without treating it as a schema-validation failure.
Source:<builtin>/ai/ns_errors/errors.bamlbytes 7827–8067
Fields
Implementations
ai.errors.Failure for ai.errors.FinishReasonError
Instance methods
Source:<builtin>/ai/ns_errors/errors.bamlbytes 7947–8065