Class ApiResponseFormat
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ApiResponseFormat>
com.azure.ai.openai.assistants.models.ApiResponseFormat
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class ApiResponseFormat
extends com.azure.core.util.ExpandableStringEnum<ApiResponseFormat>
Possible API response formats.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ApiResponseFormat
Using `json_object` format will limit the usage of ToolCall to only functions.static final ApiResponseFormat
Using `json_schema` format will ensure the model matches the supplied JSON schema.static final ApiResponseFormat
`text` format should be used for requests involving any sort of ToolCall. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiResponseFormat
fromString
(String name) Creates or finds a ApiResponseFormat from its string representation.static Collection
<ApiResponseFormat> values()
Gets known ApiResponseFormat values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
TEXT
`text` format should be used for requests involving any sort of ToolCall. -
JSON_OBJECT
Using `json_object` format will limit the usage of ToolCall to only functions. -
JSON_SCHEMA
Using `json_schema` format will ensure the model matches the supplied JSON schema.
-
-
Constructor Details
-
ApiResponseFormat
Deprecated.Use thefromString(String)
factory method.Creates a new instance of ApiResponseFormat value.
-
-
Method Details
-
fromString
Creates or finds a ApiResponseFormat from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding ApiResponseFormat.
-
values
Gets known ApiResponseFormat values.- Returns:
- known ApiResponseFormat values.
-
fromString(String)
factory method.