Enumeration: EFinishReason
Defined in: internal/llm-client/types.ts:203
Why the model stopped.
Enumeration Members
CONTENT_FILTER
CONTENT_FILTER:
"CONTENT_FILTER"
Defined in: internal/llm-client/types.ts:211
The provider's content filter cut the answer.
ERROR
ERROR:
"ERROR"
Defined in: internal/llm-client/types.ts:213
The provider reported an error as the finish.
LENGTH
LENGTH:
"LENGTH"
Defined in: internal/llm-client/types.ts:207
The output cap was hit; the answer may be incomplete (output_truncated). Also a run the limits stopped.
STOP
STOP:
"STOP"
Defined in: internal/llm-client/types.ts:205
The model finished its answer (also the SDK's "other").
TOOL_CALLS
TOOL_CALLS:
"TOOL_CALLS"
Defined in: internal/llm-client/types.ts:209
The model stopped to ask for tools.