ChatCompletionSchemaProperties Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. ChatCompletionSchemaProperties
- com.
Implements
public final class ChatCompletionSchemaProperties
implements JsonSerializable<ChatCompletionSchemaProperties>
Properties for JSON schema response format.
Constructor Summary
| Constructor | Description |
|---|---|
| ChatCompletionSchemaProperties() |
Creates an instance of Chat |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Chat |
fromJson(JsonReader jsonReader)
Reads an instance of Chat |
| String |
getDescription()
Get the description property: Description of the json schema the model will adhere to. |
| String |
getName()
Get the name property: Name of the json schema the model will adhere to. |
|
Chat |
getSchema()
Get the schema property: The schema definition. |
| Boolean |
isStrict()
Get the strict property: Whether or not the model's response should use structured outputs. |
|
Chat |
setDescription(String description)
Set the description property: Description of the json schema the model will adhere to. |
|
Chat |
setName(String name)
Set the name property: Name of the json schema the model will adhere to. |
|
Chat |
setSchema(ChatCompletionSchema schema)
Set the schema property: The schema definition. |
|
Chat |
setStrict(Boolean strict)
Set the strict property: Whether or not the model's response should use structured outputs. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ChatCompletionSchemaProperties
public ChatCompletionSchemaProperties()
Creates an instance of ChatCompletionSchemaProperties class.
Method Details
fromJson
public static ChatCompletionSchemaProperties fromJson(JsonReader jsonReader)
Reads an instance of ChatCompletionSchemaProperties from the JsonReader.
Parameters:
Returns:
Throws:
getDescription
public String getDescription()
Get the description property: Description of the json schema the model will adhere to.
Returns:
getName
public String getName()
Get the name property: Name of the json schema the model will adhere to.
Returns:
getSchema
public ChatCompletionSchema getSchema()
Get the schema property: The schema definition.
Returns:
isStrict
public Boolean isStrict()
Get the strict property: Whether or not the model's response should use structured outputs. Default is true.
Returns:
setDescription
public ChatCompletionSchemaProperties setDescription(String description)
Set the description property: Description of the json schema the model will adhere to.
Parameters:
Returns:
setName
public ChatCompletionSchemaProperties setName(String name)
Set the name property: Name of the json schema the model will adhere to.
Parameters:
Returns:
setSchema
public ChatCompletionSchemaProperties setSchema(ChatCompletionSchema schema)
Set the schema property: The schema definition.
Parameters:
Returns:
setStrict
public ChatCompletionSchemaProperties setStrict(Boolean strict)
Set the strict property: Whether or not the model's response should use structured outputs. Default is true.
Parameters:
Returns: