Class AssistantsApiResponseFormatJsonSchemaJsonSchema
java.lang.Object
com.azure.ai.openai.assistants.models.AssistantsApiResponseFormatJsonSchemaJsonSchema
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AssistantsApiResponseFormatJsonSchemaJsonSchema>
public final class AssistantsApiResponseFormatJsonSchemaJsonSchema
extends Object
implements com.azure.json.JsonSerializable<AssistantsApiResponseFormatJsonSchemaJsonSchema>
The AssistantsApiResponseFormatJsonSchemaJsonSchema model.
-
Constructor Summary
ConstructorsConstructorDescriptionAssistantsApiResponseFormatJsonSchemaJsonSchema
(String name, com.azure.core.util.BinaryData schema) Creates an instance of AssistantsApiResponseFormatJsonSchemaJsonSchema class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AssistantsApiResponseFormatJsonSchemaJsonSchema from the JsonReader.Get the description property: A description of what the response format is for, used by the model to determine how to respond in the format.getName()
Get the name property: The name of the response format.com.azure.core.util.BinaryData
Get the schema property: The schema for the response format, described as a JSON Schema object.isStrict()
Get the strict property: Whether to enable strict schema adherence when generating the output.setDescription
(String description) Set the description property: A description of what the response format is for, used by the model to determine how to respond in the format.Set the strict property: Whether to enable strict schema adherence when generating the output.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AssistantsApiResponseFormatJsonSchemaJsonSchema
public AssistantsApiResponseFormatJsonSchemaJsonSchema(String name, com.azure.core.util.BinaryData schema) Creates an instance of AssistantsApiResponseFormatJsonSchemaJsonSchema class.- Parameters:
name
- the name value to set.schema
- the schema value to set.
-
-
Method Details
-
getDescription
Get the description property: A description of what the response format is for, used by the model to determine how to respond in the format.- Returns:
- the description value.
-
setDescription
Set the description property: A description of what the response format is for, used by the model to determine how to respond in the format.- Parameters:
description
- the description value to set.- Returns:
- the AssistantsApiResponseFormatJsonSchemaJsonSchema object itself.
-
getName
Get the name property: The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.- Returns:
- the name value.
-
getSchema
public com.azure.core.util.BinaryData getSchema()Get the schema property: The schema for the response format, described as a JSON Schema object.- Returns:
- the schema value.
-
isStrict
Get the strict property: Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the Structured Outputs guide.- Returns:
- the strict value.
-
setStrict
Set the strict property: Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the Structured Outputs guide.- Parameters:
strict
- the strict value to set.- Returns:
- the AssistantsApiResponseFormatJsonSchemaJsonSchema object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AssistantsApiResponseFormatJsonSchemaJsonSchema>
- Throws:
IOException
-
fromJson
public static AssistantsApiResponseFormatJsonSchemaJsonSchema fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AssistantsApiResponseFormatJsonSchemaJsonSchema from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AssistantsApiResponseFormatJsonSchemaJsonSchema if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the AssistantsApiResponseFormatJsonSchemaJsonSchema.
-