FinishReason

@Serializable
enum FinishReason : Enum<FinishReason>

Entries

Link copied to clipboard

A new and not yet supported value.

Link copied to clipboard

Reason is unspecified.

Link copied to clipboard

Model finished successfully and stopped.

Link copied to clipboard

Model hit the token limit.

Link copied to clipboard

SafetySettings prevented the model from outputting content.

Link copied to clipboard

Model began looping.

Link copied to clipboard

The model produced a malformed function call.

Link copied to clipboard

Model stopped for another reason.

Properties

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.