Class ChatCompletionResponseFormatJsonSchemaProperties
java.lang.Object
com.azure.search.documents.indexes.models.ChatCompletionResponseFormatJsonSchemaProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ChatCompletionResponseFormatJsonSchemaProperties>
public final class ChatCompletionResponseFormatJsonSchemaProperties
extends Object
implements com.azure.json.JsonSerializable<ChatCompletionResponseFormatJsonSchemaProperties>
An open dictionary for extended properties. Required if 'type' == 'json_schema'.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ChatCompletionResponseFormatJsonSchemaProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ChatCompletionResponseFormatJsonSchemaProperties from the JsonReader.Get the description property: Description of the json schema the model will adhere to.getName()Get the name property: Name of the json schema the model will adhere to.Get the schema property: Object defining the custom schema the model will use to structure its output.isStrict()Get the strict property: Whether or not the model's response should use structured outputs.setDescription(String description) Set the description property: Description of the json schema the model will adhere to.Set the name property: Name of the json schema the model will adhere to.setSchema(ChatCompletionSchema schema) Set the schema property: Object defining the custom schema the model will use to structure its output.Set the strict property: Whether or not the model's response should use structured outputs.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ChatCompletionResponseFormatJsonSchemaProperties
public ChatCompletionResponseFormatJsonSchemaProperties()Creates an instance of ChatCompletionResponseFormatJsonSchemaProperties class.
-
-
Method Details
-
getName
Get the name property: Name of the json schema the model will adhere to.- Returns:
- the name value.
-
setName
Set the name property: Name of the json schema the model will adhere to.- Parameters:
name- the name value to set.- Returns:
- the ChatCompletionResponseFormatJsonSchemaProperties object itself.
-
getDescription
Get the description property: Description of the json schema the model will adhere to.- Returns:
- the description value.
-
setDescription
Set the description property: Description of the json schema the model will adhere to.- Parameters:
description- the description value to set.- Returns:
- the ChatCompletionResponseFormatJsonSchemaProperties object itself.
-
isStrict
Get the strict property: Whether or not the model's response should use structured outputs. Default is true.- Returns:
- the strict value.
-
setStrict
Set the strict property: Whether or not the model's response should use structured outputs. Default is true.- Parameters:
strict- the strict value to set.- Returns:
- the ChatCompletionResponseFormatJsonSchemaProperties object itself.
-
getSchema
Get the schema property: Object defining the custom schema the model will use to structure its output.- Returns:
- the schema value.
-
setSchema
Set the schema property: Object defining the custom schema the model will use to structure its output.- Parameters:
schema- the schema value to set.- Returns:
- the ChatCompletionResponseFormatJsonSchemaProperties object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ChatCompletionResponseFormatJsonSchemaProperties>- Throws:
IOException
-
fromJson
public static ChatCompletionResponseFormatJsonSchemaProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ChatCompletionResponseFormatJsonSchemaProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ChatCompletionResponseFormatJsonSchemaProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ChatCompletionResponseFormatJsonSchemaProperties.
-