Class ChatCompletionsJsonSchemaResponseFormat
- java.lang.Object
-
- com.azure.ai.openai.models.ChatCompletionsResponseFormat
-
- com.microsoft.semantickernel.aiservices.openai.chatcompletion.responseformat.ChatCompletionsJsonSchemaResponseFormat
-
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.ai.openai.models.ChatCompletionsResponseFormat>
public class ChatCompletionsJsonSchemaResponseFormat extends com.azure.ai.openai.models.ChatCompletionsResponseFormatRepresents a response format for chat completions that uses a JSON schema.
-
-
Constructor Summary
Constructors Constructor Description ChatCompletionsJsonSchemaResponseFormat(JsonResponseSchema schema)Creates a new instance of theChatCompletionsJsonSchemaResponseFormatclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter)
-
-
-
Constructor Detail
-
ChatCompletionsJsonSchemaResponseFormat
public ChatCompletionsJsonSchemaResponseFormat(JsonResponseSchema schema)
Creates a new instance of theChatCompletionsJsonSchemaResponseFormatclass.- Parameters:
schema- The JSON schema.
-
-
Method Detail
-
getType
public String getType()
- Overrides:
getTypein classcom.azure.ai.openai.models.ChatCompletionsResponseFormat
-
toJson
public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.ai.openai.models.ChatCompletionsResponseFormat>- Overrides:
toJsonin classcom.azure.ai.openai.models.ChatCompletionsResponseFormat- Throws:
IOException
-
-