Package com.tnsai.llm
Enum Class ChatChunk.FinishReason
- All Implemented Interfaces:
Serializable,Comparable<ChatChunk.FinishReason>,Constable
- Enclosing class:
ChatChunk
The reason why generation stopped.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionContent filter triggeredError during generationMax tokens reachedNatural end of responseTool call requested -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatChunk.FinishReasonReturns the enum constant of this class with the specified name.static ChatChunk.FinishReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
STOP
Natural end of response -
LENGTH
Max tokens reached -
TOOL_CALLS
Tool call requested -
CONTENT_FILTER
Content filter triggered -
ERROR
Error during generation
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-