Record Class AssistantsToolChoice.StringToolChoice
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.AssistantsToolChoice.StringToolChoice
- Record Components:
choice- `none` means the model will not call a function and instead generates a message. `auto` means the model can pick between generating a message or calling a function.
- All Implemented Interfaces:
AssistantsToolChoice
- Enclosing interface:
- AssistantsToolChoice
public static record AssistantsToolChoice.StringToolChoice(String choice)
extends Record
implements AssistantsToolChoice
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.stefanbratanov.jvm.openai.AssistantsToolChoice
AssistantsToolChoice.StringToolChoice -
Constructor Summary
ConstructorsConstructorDescriptionStringToolChoice(String choice) Creates an instance of aStringToolChoicerecord class. -
Method Summary
Modifier and TypeMethodDescriptionchoice()Returns the value of thechoicerecord component.final 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.
-
Constructor Details
-
StringToolChoice
Creates an instance of aStringToolChoicerecord class.- Parameters:
choice- the value for thechoicerecord 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). -
choice
Returns the value of thechoicerecord component.- Returns:
- the value of the
choicerecord component
-