Enum FinishReason.Known
-
- All Implemented Interfaces:
public enum FinishReason.KnownEnum representing the known values for FinishReason.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FINISH_REASON_UNSPECIFIEDThe finish reason is unspecified.
STOPToken generation reached a natural stopping point or a configured stop sequence.
MAX_TOKENSToken generation reached the configured maximum output tokens.
SAFETYToken generation stopped because the content potentially contains safety violations. NOTE: When streaming, [content][] is empty if content filters blocks the output.
RECITATIONThe token generation stopped because of potential recitation.
LANGUAGEThe token generation stopped because of using an unsupported language.
OTHERAll other reasons that stopped the token generation.
BLOCKLISTToken generation stopped because the content contains forbidden terms.
PROHIBITED_CONTENTToken generation stopped for potentially containing prohibited content.
SPIIToken generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).
MALFORMED_FUNCTION_CALLThe function call generated by the model is invalid.
IMAGE_SAFETYToken generation stopped because generated images have safety violations.
UNEXPECTED_TOOL_CALLThe tool call generated by the model is invalid.
IMAGE_PROHIBITED_CONTENTImage generation stopped because the generated images have prohibited content.
NO_IMAGEThe model was expected to generate an image, but none was generated.
IMAGE_RECITATIONImage generation stopped because the generated image may be a recitation from a source.
IMAGE_OTHERImage generation stopped for a reason not otherwise specified.
-
Method Summary
Modifier and Type Method Description static Array<FinishReason.Known>values()Returns an array containing the constants of this enum type, in the order they're declared. static FinishReason.KnownvalueOf(String name)Returns the enum constant of this type with the specified name. -
-
Method Detail
-
values
static Array<FinishReason.Known> values()
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.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static FinishReason.Known valueOf(String name)
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:
the enum constant with the specified name
-
-
-
-