Class InlinedResponse
Config for inlined_responses parameter.
public record InlinedResponse : IEquatable<InlinedResponse>
- Inheritance
-
InlinedResponse
- Implements
- Inherited Members
Properties
Error
The error encountered while processing the request.
[JsonPropertyName("error")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public JobError? Error { get; set; }
Property Value
Metadata
The metadata to be associated with the request.
[JsonPropertyName("metadata")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Dictionary<string, string>? Metadata { get; set; }
Property Value
Response
The response to the request.
[JsonPropertyName("response")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public GenerateContentResponse? Response { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a InlinedResponse object.
public static InlinedResponse? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- InlinedResponse
The deserialized InlinedResponse object, or null if deserialization fails.