Class ChatCompletionResponseFormatType
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ChatCompletionResponseFormatType>
com.azure.search.documents.indexes.models.ChatCompletionResponseFormatType
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class ChatCompletionResponseFormatType
extends com.azure.core.util.ExpandableStringEnum<ChatCompletionResponseFormatType>
Specifies how the LLM should format the response. Possible values: 'text' (plain string), 'json_object' (arbitrary
JSON), or 'json_schema' (adheres to provided schema).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChatCompletionResponseFormatTypeStatic value jsonObject for ChatCompletionResponseFormatType.static final ChatCompletionResponseFormatTypeStatic value jsonSchema for ChatCompletionResponseFormatType.static final ChatCompletionResponseFormatTypeStatic value text for ChatCompletionResponseFormatType. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(String name) Creates or finds a ChatCompletionResponseFormatType from its string representation.values()Gets known ChatCompletionResponseFormatType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
TEXT
Static value text for ChatCompletionResponseFormatType. -
JSON_OBJECT
Static value jsonObject for ChatCompletionResponseFormatType. -
JSON_SCHEMA
Static value jsonSchema for ChatCompletionResponseFormatType.
-
-
Constructor Details
-
ChatCompletionResponseFormatType
Deprecated.Use thefromString(String)factory method.Creates a new instance of ChatCompletionResponseFormatType value.
-
-
Method Details
-
fromString
Creates or finds a ChatCompletionResponseFormatType from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ChatCompletionResponseFormatType.
-
values
Gets known ChatCompletionResponseFormatType values.- Returns:
- known ChatCompletionResponseFormatType values.
-
fromString(String)factory method.