ai.errors.FinishReasonError$stream
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.FinishReasonError$streamThe 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 0–0