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 aStringToolChoice
record class. -
Method Summary
Modifier and TypeMethodDescriptionchoice()
Returns the value of thechoice
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
StringToolChoice
Creates an instance of aStringToolChoice
record class.- Parameters:
choice
- the value for thechoice
record 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 thechoice
record component.- Returns:
- the value of the
choice
record component
-