Record Class DeepSeekApi.ChatCompletionRequest.Thinking
java.lang.Object
java.lang.Record
org.springframework.ai.deepseek.api.DeepSeekApi.ChatCompletionRequest.Thinking
- Record Components:
type- The thinking mode type. When set toDeepSeekApi.ChatCompletionRequest.Thinking.Type.ENABLED, the thinking mode is used; when set toDeepSeekApi.ChatCompletionRequest.Thinking.Type.DISABLED, the non-thinking mode is used. Defaults toDeepSeekApi.ChatCompletionRequest.Thinking.Type.ENABLEDwhen not specified.
- Enclosing class:
- DeepSeekApi.ChatCompletionRequest
public static record DeepSeekApi.ChatCompletionRequest.Thinking(@Nullable DeepSeekApi.ChatCompletionRequest.Thinking.Type type)
extends Record
Controls the switch between thinking mode and non-thinking mode.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe thinking mode type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DeepSeekApi.ChatCompletionRequest.ThinkingUse the non-thinking mode.static final DeepSeekApi.ChatCompletionRequest.ThinkingUse the thinking mode. -
Constructor Summary
ConstructorsConstructorDescriptionThinking(@Nullable DeepSeekApi.ChatCompletionRequest.Thinking.Type type) Creates an instance of aThinkingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
ENABLED
Use the thinking mode. -
DISABLED
Use the non-thinking mode.
-
-
Constructor Details
-
Thinking
Creates an instance of aThinkingrecord class.- Parameters:
type- the value for thetyperecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-