The maximum number of tokens as specified in the request was reached.
Other
All other reasons that stopped the token generation
Recitation
The token generation was stopped as the response was flagged for
unauthorized citations.
Safety
The token generation was stopped as the response was flagged for safety
reasons. NOTE: When streaming the Candidate.content will be empty if
content filters blocked the output.
Stop
Natural stop point of the model or provided stop sequence.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eCandidate.Types.FinishReason\u003c/code\u003e enum within the Google Cloud AI Platform V1 API, detailing the various reasons a model may stop generating tokens.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this documentation is for version 3.22.0, with links available for numerous previous versions, starting from 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFinishReason\u003c/code\u003e enum includes six possible values: \u003ccode\u003eMaxTokens\u003c/code\u003e, \u003ccode\u003eOther\u003c/code\u003e, \u003ccode\u003eRecitation\u003c/code\u003e, \u003ccode\u003eSafety\u003c/code\u003e, \u003ccode\u003eStop\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e, each describing a different scenario for the termination of token generation.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation specifies that when streaming, the \u003ccode\u003eCandidate.content\u003c/code\u003e field will be empty if the output was blocked due to safety reasons, highlighting the \u003ccode\u003eSafety\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eEach version of the documentation links to the namespace \u003ccode\u003eGoogle.Cloud.AIPlatform.V1\u003c/code\u003e and is located within the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]