FinishReason

The reason why the generation finished.

Entries

Link copied to clipboard

The finish reason is unspecified.

Link copied to clipboard

Token generation reached a natural stopping point or a configured stop sequence.

Link copied to clipboard

Token generation reached the configured maximum output tokens.

Link copied to clipboard

Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, content is empty if content filters blocks the output.

Link copied to clipboard

The token generation stopped because of potential recitation.

Link copied to clipboard

All other reasons that stopped the token generation.

Link copied to clipboard

Token generation stopped because the content contains forbidden terms.

Link copied to clipboard

Token generation stopped for potentially containing prohibited content.

Link copied to clipboard

Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).

Link copied to clipboard

The function call generated by the model is invalid.

Link copied to clipboard

A tool returned an unexpected result, or a tool threw an exception.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.