Freigeben über


TextResponseFormatConfiguration Class

Definition

An object specifying the format that the model must output. Configuring { "type": "json_schema" } enables Structured Outputs, which ensures the model will match your supplied JSON schema. Learn more in the Structured Outputs guide. The default format is { "type": "text" } with no additional options. Not recommended for gpt-4o and newer models:* Setting to { "type": "json_object" } enables the older JSON mode, which ensures the message the model generates is valid JSON. Using json_schema is preferred for models that support it. Please note this is the abstract base class. The derived classes available for instantiation are: TextResponseFormatJsonSchema, TextResponseFormatConfigurationResponseFormatText, and TextResponseFormatConfigurationResponseFormatJsonObject.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.AgentServer.Responses.Models.UnknownTextResponseFormatConfiguration))]
public abstract class TextResponseFormatConfiguration : System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Responses.Models.TextResponseFormatConfiguration>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Responses.Models.TextResponseFormatConfiguration>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.AgentServer.Responses.Models.UnknownTextResponseFormatConfiguration))>]
type TextResponseFormatConfiguration = class
    interface IJsonModel<TextResponseFormatConfiguration>
    interface IPersistableModel<TextResponseFormatConfiguration>
Public MustInherit Class TextResponseFormatConfiguration
Implements IJsonModel(Of TextResponseFormatConfiguration), IPersistableModel(Of TextResponseFormatConfiguration)
Inheritance
TextResponseFormatConfiguration
Derived
Attributes
Implements

Applies to