Table of Contents

Class CustomOutput

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

Spec for custom output. This data type is not supported in Gemini API.

public record CustomOutput : IEquatable<CustomOutput>
Inheritance
CustomOutput
Implements
Inherited Members

Properties

RawOutputs

Output only. List of raw output strings.

[JsonPropertyName("rawOutputs")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public RawOutput? RawOutputs { get; set; }

Property Value

RawOutput

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a CustomOutput object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

CustomOutput

The deserialized CustomOutput object, or null if deserialization fails.