Enum Class TitanChatBedrockApi.TitanChatResponse.CompletionReason
java.lang.Object
java.lang.Enum<TitanChatBedrockApi.TitanChatResponse.CompletionReason>
org.springframework.ai.bedrock.titan.api.TitanChatBedrockApi.TitanChatResponse.CompletionReason
- All Implemented Interfaces:
Serializable
,Comparable<TitanChatBedrockApi.TitanChatResponse.CompletionReason>
,Constable
- Enclosing class:
- TitanChatBedrockApi.TitanChatResponse
public static enum TitanChatBedrockApi.TitanChatResponse.CompletionReason
extends Enum<TitanChatBedrockApi.TitanChatResponse.CompletionReason>
The reason the response finished being generated.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe response was truncated because of restrictions.The response was fully generated.The response was truncated because of the response length you set. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FINISH
The response was fully generated. -
LENGTH
The response was truncated because of the response length you set. -
CONTENT_FILTERED
The response was truncated because of restrictions.
-
-
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
-