Class SingleEmbedContentResponse
Config for response parameter.
public record SingleEmbedContentResponse : IEquatable<SingleEmbedContentResponse>
- Inheritance
-
SingleEmbedContentResponse
- Implements
- Inherited Members
Properties
Embedding
The response to the request.
[JsonPropertyName("embedding")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ContentEmbedding? Embedding { get; set; }
Property Value
TokenCount
The error encountered while processing the request.
[JsonPropertyName("tokenCount")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(StringToNullableLongConverter))]
public long? TokenCount { get; set; }
Property Value
- long?
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a SingleEmbedContentResponse object.
public static SingleEmbedContentResponse? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- SingleEmbedContentResponse
The deserialized SingleEmbedContentResponse object, or null if deserialization fails.