ChatCompletionResponseFormat Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. ChatCompletionResponseFormat
- com.
Implements
public final class ChatCompletionResponseFormat
implements JsonSerializable<ChatCompletionResponseFormat>
Determines how the language model's response should be serialized. Defaults to 'text'.
Constructor Summary
| Constructor | Description |
|---|---|
| ChatCompletionResponseFormat() |
Creates an instance of Chat |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Chat |
fromJson(JsonReader jsonReader)
Reads an instance of Chat |
|
Chat |
getJsonSchemaProperties()
Get the json |
|
Chat |
getType()
Get the type property: Specifies how the LLM should format the response. |
|
Chat |
setJsonSchemaProperties(ChatCompletionSchemaProperties jsonSchemaProperties)
Set the json |
|
Chat |
setType(ChatCompletionResponseFormatType type)
Set the type property: Specifies how the LLM should format the response. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ChatCompletionResponseFormat
public ChatCompletionResponseFormat()
Creates an instance of ChatCompletionResponseFormat class.
Method Details
fromJson
public static ChatCompletionResponseFormat fromJson(JsonReader jsonReader)
Reads an instance of ChatCompletionResponseFormat from the JsonReader.
Parameters:
Returns:
Throws:
getJsonSchemaProperties
public ChatCompletionSchemaProperties getJsonSchemaProperties()
Get the jsonSchemaProperties property: An open dictionary for extended properties. Required if 'type' == 'json_schema'.
Returns:
getType
public ChatCompletionResponseFormatType getType()
Get the type property: Specifies how the LLM should format the response.
Returns:
setJsonSchemaProperties
public ChatCompletionResponseFormat setJsonSchemaProperties(ChatCompletionSchemaProperties jsonSchemaProperties)
Set the jsonSchemaProperties property: An open dictionary for extended properties. Required if 'type' == 'json_schema'.
Parameters:
Returns:
setType
public ChatCompletionResponseFormat setType(ChatCompletionResponseFormatType type)
Set the type property: Specifies how the LLM should format the response.
Parameters:
Returns: