Table of Contents

Class InlinedResponse

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

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

JobError

Metadata

The metadata to be associated with the request.

[JsonPropertyName("metadata")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Dictionary<string, string>? Metadata { get; set; }

Property Value

Dictionary<string, string>

Response

The response to the request.

[JsonPropertyName("response")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public GenerateContentResponse? Response { get; set; }

Property Value

GenerateContentResponse

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a InlinedResponse object.

public static InlinedResponse? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

InlinedResponse

The deserialized InlinedResponse object, or null if deserialization fails.