Class AssistantsApiToolChoiceOptionMode
java.lang.Object
com.azure.core.util.ExpandableStringEnum<AssistantsApiToolChoiceOptionMode>
com.azure.ai.openai.assistants.models.AssistantsApiToolChoiceOptionMode
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class AssistantsApiToolChoiceOptionMode
extends com.azure.core.util.ExpandableStringEnum<AssistantsApiToolChoiceOptionMode>
Specifies how the tool choice will be used.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AssistantsApiToolChoiceOptionMode
The model can pick between generating a message or calling a function.static final AssistantsApiToolChoiceOptionMode
The model will not call a function and instead generates a message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString
(String name) Creates or finds a AssistantsApiToolChoiceOptionMode from its string representation.values()
Gets known AssistantsApiToolChoiceOptionMode values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
NONE
The model will not call a function and instead generates a message. -
AUTO
The model can pick between generating a message or calling a function.
-
-
Constructor Details
-
AssistantsApiToolChoiceOptionMode
Deprecated.Use thefromString(String)
factory method.Creates a new instance of AssistantsApiToolChoiceOptionMode value.
-
-
Method Details
-
fromString
Creates or finds a AssistantsApiToolChoiceOptionMode from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding AssistantsApiToolChoiceOptionMode.
-
values
Gets known AssistantsApiToolChoiceOptionMode values.- Returns:
- known AssistantsApiToolChoiceOptionMode values.
-
fromString(String)
factory method.