Known
Enum representing the known values for FinishReason.
Entries
The finish reason is unspecified.
Token generation reached the configured maximum output tokens.
The token generation stopped because of potential recitation.
Token generation stopped for potentially containing prohibited content.
The function call generated by the model is invalid.
Token generation stopped because generated images have safety violations.
The tool call generated by the model is invalid.
Image generation stopped because the generated images have prohibited content.
Image generation stopped because the generated image may be a recitation from a source.
Image generation stopped for a reason not otherwise specified.
Functions
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.)
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.