FinishReason Enumeration
Defines the reason why the model stopped generating tokens.
Namespace: GenerativeAI.TypesAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
| FINISH_REASON_UNSPECIFIED | 0 |
Default value. This value is unused.
|
| STOP | 1 |
Natural stop point of the model or provided stop sequence.
|
| MAX_TOKENS | 2 |
The maximum number of tokens as specified in the request was reached.
|
| SAFETY | 3 |
The response candidate content was flagged for safety reasons.
|
| RECITATION | 4 |
The response candidate content was flagged for recitation reasons.
|
| LANGUAGE | 5 |
The response candidate content was flagged for using an unsupported language.
|
| OTHER | 6 |
Unknown reason.
|
| BLOCKLIST | 7 |
Token generation stopped because the content contains forbidden terms.
|
| PROHIBITED_CONTENT | 8 |
Token generation stopped for potentially containing prohibited content.
|
| SPII | 9 |
Token generation stopped because the content potentially contains Sensitive Personally
Identifiable Information (SPII).
|
| MALFORMED_FUNCTION_CALL | 10 |
The function call generated by the model is invalid.
|
| IMAGE_SAFETY | 11 |
Token generation stopped because generated images contain safety violations.
|