Class ResponseFormatObject
- Namespace
- OpenAI
- Assembly
- OpenAI-DotNet.dll
public sealed class ResponseFormatObject
- Inheritance
-
ResponseFormatObject
- Inherited Members
-
Constructors
public ResponseFormatObject()
public ResponseFormatObject(ChatResponseFormat type)
Parameters
type
ChatResponseFormat
public ResponseFormatObject(JsonSchema schema)
Parameters
schema
JsonSchema
Properties
[JsonInclude]
[JsonPropertyName("json_schema")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public JsonSchema JsonSchema { get; }
Property Value
- JsonSchema
[JsonInclude]
[JsonPropertyName("type")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonConverter(typeof(JsonStringEnumConverter<ChatResponseFormat>))]
public ChatResponseFormat Type { get; }
Property Value
- ChatResponseFormat
Operators
public static implicit operator ResponseFormatObject(ChatResponseFormat type)
Parameters
type
ChatResponseFormat
Returns
- ResponseFormatObject
public static implicit operator ChatResponseFormat(ResponseFormatObject format)
Parameters
format
ResponseFormatObject
Returns
- ChatResponseFormat