ChatCompletionSchema Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. ChatCompletionSchema
- com.
Implements
public final class ChatCompletionSchema
implements JsonSerializable<ChatCompletionSchema>
Object defining the custom schema the model will use to structure its output.
Constructor Summary
| Constructor | Description |
|---|---|
| ChatCompletionSchema() |
Creates an instance of Chat |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Chat |
fromJson(JsonReader jsonReader)
Reads an instance of Chat |
| String |
getProperties()
Get the properties property: A JSON-formatted string that defines the output schema's properties and constraints for the model. |
| List<String> |
getRequired()
Get the required property: An array of the property names that are required to be part of the model's response. |
| String |
getType()
Get the type property: Type of schema representation. |
| Boolean |
isAdditionalProperties()
Get the additional |
|
Chat |
setAdditionalProperties(Boolean additionalProperties)
Set the additional |
|
Chat |
setProperties(String properties)
Set the properties property: A JSON-formatted string that defines the output schema's properties and constraints for the model. |
|
Chat |
setRequired(List<String> required)
Set the required property: An array of the property names that are required to be part of the model's response. |
|
Chat |
setRequired(String[] required)
Set the required property: An array of the property names that are required to be part of the model's response. |
|
Chat |
setType(String type)
Set the type property: Type of schema representation. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ChatCompletionSchema
public ChatCompletionSchema()
Creates an instance of ChatCompletionSchema class.
Method Details
fromJson
public static ChatCompletionSchema fromJson(JsonReader jsonReader)
Reads an instance of ChatCompletionSchema from the JsonReader.
Parameters:
Returns:
Throws:
getProperties
public String getProperties()
Get the properties property: A JSON-formatted string that defines the output schema's properties and constraints for the model.
Returns:
getRequired
public List<String> getRequired()
Get the required property: An array of the property names that are required to be part of the model's response. All properties must be included for structured outputs.
Returns:
getType
public String getType()
Get the type property: Type of schema representation. Usually 'object'. Default is 'object'.
Returns:
isAdditionalProperties
public Boolean isAdditionalProperties()
Get the additionalProperties property: Controls whether it is allowable for an object to contain additional keys / values that were not defined in the JSON Schema. Default is false.
Returns:
setAdditionalProperties
public ChatCompletionSchema setAdditionalProperties(Boolean additionalProperties)
Set the additionalProperties property: Controls whether it is allowable for an object to contain additional keys / values that were not defined in the JSON Schema. Default is false.
Parameters:
Returns:
setProperties
public ChatCompletionSchema setProperties(String properties)
Set the properties property: A JSON-formatted string that defines the output schema's properties and constraints for the model.
Parameters:
Returns:
setRequired
public ChatCompletionSchema setRequired(List<String> required)
Set the required property: An array of the property names that are required to be part of the model's response. All properties must be included for structured outputs.
Parameters:
Returns:
setRequired
public ChatCompletionSchema setRequired(String[] required)
Set the required property: An array of the property names that are required to be part of the model's response. All properties must be included for structured outputs.
Parameters:
Returns:
setType
public ChatCompletionSchema setType(String type)
Set the type property: Type of schema representation. Usually 'object'. Default is 'object'.
Parameters:
Returns: