Record Class ChatCompletionOptions
java.lang.Object
java.lang.Record
dev.langchain4j.model.openai.internal.ChatCompletionOptions
public record ChatCompletionOptions(boolean returnThinking, boolean accumulateToolCallId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionChatCompletionOptions(boolean returnThinking, boolean accumulateToolCallId) Creates an instance of aChatCompletionOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theaccumulateToolCallIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thereturnThinkingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatCompletionOptions
public ChatCompletionOptions(boolean returnThinking, boolean accumulateToolCallId) Creates an instance of aChatCompletionOptionsrecord class.- Parameters:
returnThinking- the value for thereturnThinkingrecord componentaccumulateToolCallId- the value for theaccumulateToolCallIdrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
returnThinking
public boolean returnThinking()Returns the value of thereturnThinkingrecord component.- Returns:
- the value of the
returnThinkingrecord component
-
accumulateToolCallId
public boolean accumulateToolCallId()Returns the value of theaccumulateToolCallIdrecord component.- Returns:
- the value of the
accumulateToolCallIdrecord component
-