Package com.azure.ai.openai.models
Class ChatCompletionsToolSelectionPreset
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ChatCompletionsToolSelectionPreset>
com.azure.ai.openai.models.ChatCompletionsToolSelectionPreset
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class ChatCompletionsToolSelectionPreset
extends com.azure.core.util.ExpandableStringEnum<ChatCompletionsToolSelectionPreset>
Represents a generic policy for how a chat completions tool may be selected.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChatCompletionsToolSelectionPresetSpecifies that the model may either use any of the tools provided in this chat completions request or instead return a standard chat completions response as if no tools were provided.static final ChatCompletionsToolSelectionPresetSpecifies that the model should not respond with a tool call and should instead provide a standard chat completions response.static final ChatCompletionsToolSelectionPresetSpecifies that the model must call one or more tools. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(String name) Creates or finds a ChatCompletionsToolSelectionPreset from its string representation.values()Gets known ChatCompletionsToolSelectionPreset values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
AUTO
Specifies that the model may either use any of the tools provided in this chat completions request or instead return a standard chat completions response as if no tools were provided. -
NONE
Specifies that the model should not respond with a tool call and should instead provide a standard chat completions response. Response content may still be influenced by the provided tool definitions. -
REQUIRED
Specifies that the model must call one or more tools.
-
-
Constructor Details
-
ChatCompletionsToolSelectionPreset
Deprecated.Use thefromString(String)factory method.Creates a new instance of ChatCompletionsToolSelectionPreset value.
-
-
Method Details
-
fromString
Creates or finds a ChatCompletionsToolSelectionPreset from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ChatCompletionsToolSelectionPreset.
-
values
Gets known ChatCompletionsToolSelectionPreset values.- Returns:
- known ChatCompletionsToolSelectionPreset values.
-
fromString(String)factory method.