Class ChatCompletionsJsonSchemaResponseFormat

java.lang.Object
com.azure.ai.openai.models.ChatCompletionsResponseFormat
com.azure.ai.openai.models.ChatCompletionsJsonSchemaResponseFormat
All Implemented Interfaces:
com.azure.json.JsonSerializable<ChatCompletionsResponseFormat>

public final class ChatCompletionsJsonSchemaResponseFormat extends ChatCompletionsResponseFormat
A response format for Chat Completions that restricts responses to emitting JSON that conforms to a provided JSON Schema for Structured Outputs.
  • Constructor Details

    • ChatCompletionsJsonSchemaResponseFormat

      public ChatCompletionsJsonSchemaResponseFormat(ChatCompletionsJsonSchemaResponseFormatJsonSchema jsonSchema)
      Creates an instance of ChatCompletionsJsonSchemaResponseFormat class.
      Parameters:
      jsonSchema - the jsonSchema value to set.
  • Method Details