Token generation stopped because the content contains forbidden terms.
MalformedFunctionCall
The function call generated by the model is invalid.
MaxTokens
Token generation reached the configured maximum output tokens.
Other
All other reasons that stopped the token generation.
ProhibitedContent
Token generation stopped for potentially containing prohibited content.
Recitation
Token generation stopped because the content potentially contains
copyright violations.
Safety
Token generation stopped because the content potentially contains safety
violations. NOTE: When streaming,
[content][google.cloud.aiplatform.v1beta1.Candidate.content] is empty if
content filters blocks the output.
Spii
Token generation stopped because the content potentially contains
Sensitive Personally Identifiable Information (SPII).
Stop
Token generation reached a natural stopping point or a configured stop
sequence.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["This documentation covers the `Candidate.Types.FinishReason` enum within the Cloud AI Platform v1beta1 API, detailing the reasons a model might stop generating tokens."],["The `FinishReason` enum provides ten different reasons for token generation termination, including `MaxTokens`, `Stop`, `Safety`, `ProhibitedContent`, and `Blocklist`."],["If the model hasn't stopped generating tokens, the `FinishReason` will be empty and if it is unspecified it will be labeled `Unspecified`."],["The enum also captures other potential reasons for stopping, such as `Recitation`, `Spii`, and `MalformedFunctionCall`, relating to copyright violations, sensitive data, and invalid function calls, respectively."]]],[]]