Table of Contents

Class ResponseFormatObject

Namespace
OpenAI
Assembly
OpenAI-DotNet.dll
public sealed class ResponseFormatObject
Inheritance
ResponseFormatObject
Inherited Members

Constructors

ResponseFormatObject()

public ResponseFormatObject()

ResponseFormatObject(ChatResponseFormat)

public ResponseFormatObject(ChatResponseFormat type)

Parameters

type ChatResponseFormat

ResponseFormatObject(JsonSchema)

public ResponseFormatObject(JsonSchema schema)

Parameters

schema JsonSchema

Properties

JsonSchema

[JsonInclude]
[JsonPropertyName("json_schema")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public JsonSchema JsonSchema { get; }

Property Value

JsonSchema

Type

[JsonInclude]
[JsonPropertyName("type")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonConverter(typeof(JsonStringEnumConverter<ChatResponseFormat>))]
public ChatResponseFormat Type { get; }

Property Value

ChatResponseFormat

Operators

implicit operator ResponseFormatObject(ChatResponseFormat)

public static implicit operator ResponseFormatObject(ChatResponseFormat type)

Parameters

type ChatResponseFormat

Returns

ResponseFormatObject

implicit operator ChatResponseFormat(ResponseFormatObject)

public static implicit operator ChatResponseFormat(ResponseFormatObject format)

Parameters

format ResponseFormatObject

Returns

ChatResponseFormat