Companion

object Companion

Properties

Link copied to clipboard

The model stopped generating because the content contains a term from a configured blocklist.

Link copied to clipboard

Token generation was stopped because the response reached the per-request token limit, but generation is not yet complete. The model response can be continued via a subsequent request using the returned continuation_token.

Link copied to clipboard

Request was filtered by an escalation rule. This enum value is not supported in Vertex AI.

Link copied to clipboard

The finish reason is unspecified.

Link copied to clipboard

The image generation stopped for a reason not otherwise specified.

Link copied to clipboard

The generated image may contain prohibited content.

Link copied to clipboard

The generated image may be a recitation from a source.

Link copied to clipboard

The generated image potentially violates safety policies.

Link copied to clipboard

The response candidate content was flagged for using an unsupported language. This enum value is not supported in Vertex AI.

Link copied to clipboard

The model generated a function call that is syntactically invalid and can't be parsed.

Link copied to clipboard

Finishes due to malformed response.

Link copied to clipboard

The model generated the maximum number of tokens allowed by the max_output_tokens parameter.

Link copied to clipboard

Request has at least one thought signature missing. This enum value is not supported in Vertex AI.

Link copied to clipboard

The model response was blocked by Model Armor. This enum value is not supported in Gemini API.

Link copied to clipboard

The model was expected to generate an image, but didn't.

Link copied to clipboard

The model stopped generating for a reason not otherwise specified.

Link copied to clipboard

The model stopped generating because the content may be prohibited.

Link copied to clipboard

Indicates that token generation stopped because the user account is limited or disabled due to Prohibited Use Policy (PUP) violations. This enum value is not supported in Vertex AI.

Link copied to clipboard

The model stopped generating because the content may be a recitation from a source.

Link copied to clipboard

The model stopped generating because the content potentially violates safety policies. NOTE: When streaming, the content field is empty if content filters block the output.

Link copied to clipboard

The model stopped generating because the content may contain sensitive personally identifiable information (SPII).

Link copied to clipboard

The model reached a natural stopping point or a configured stop sequence.

Link copied to clipboard

The model made too many tool calls in a single request, so the server-side tool loop stopped before the model returned a final answer.

Link copied to clipboard

The model generated a function call that is semantically invalid. This can happen, for example, if function calling is not enabled or the generated function is not in the function declaration.