Class ResponseFormat
public class ResponseFormat
- Inheritance
-
objectResponseFormat
- Derived
- Extension Methods
Constructors
ResponseFormat()
public ResponseFormat()
ResponseFormat(string)
public ResponseFormat(string type)
Parameters
typestring
Properties
Auto
public static ResponseFormat Auto { get; }
Property Value
IsJsonSchema
public bool IsJsonSchema { get; }
Property Value
- bool
IsObject
public bool IsObject { get; }
Property Value
- bool
IsString
public bool IsString { get; protected set; }
Property Value
- bool
JsonObject
public static ResponseFormat JsonObject { get; }
Property Value
Text
public static ResponseFormat Text { get; }
Property Value
Type
The type of the format returned by the API.
public string Type { get; set; }
Property Value
- string
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator ==(ResponseFormat, ResponseFormat)
public static bool operator ==(ResponseFormat left, ResponseFormat right)
Parameters
leftResponseFormatrightResponseFormat
Returns
- bool
implicit operator StrictJsonSchema(ResponseFormat)
public static implicit operator StrictJsonSchema(ResponseFormat format)
Parameters
formatResponseFormat
Returns
implicit operator JsonSchema(ResponseFormat)
public static implicit operator JsonSchema(ResponseFormat format)
Parameters
formatResponseFormat
Returns
- JsonSchema
implicit operator string(ResponseFormat)
public static implicit operator string(ResponseFormat wrapper)
Parameters
wrapperResponseFormat
Returns
- string
implicit operator ResponseFormat(StrictJsonSchema)
public static implicit operator ResponseFormat(StrictJsonSchema strictJsonSchema)
Parameters
strictJsonSchemaStrictJsonSchema
Returns
implicit operator ResponseFormat(string)
public static implicit operator ResponseFormat(string type)
Parameters
typestring
Returns
implicit operator ResponseFormat(Type)
public static implicit operator ResponseFormat(Type type)
Parameters
typeType
Returns
operator !=(ResponseFormat, ResponseFormat)
public static bool operator !=(ResponseFormat left, ResponseFormat right)
Parameters
leftResponseFormatrightResponseFormat
Returns
- bool