Table of Contents

Class InteractionResponseFormat

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Requested output format (response_format), discriminated by type: text (structured output), image, audio or video. Formats this SDK does not know are kept as UnknownInteractionResponseFormat.

[JsonConverter(typeof(InteractionResponseFormatConverter))]
public abstract class InteractionResponseFormat
Inheritance
InteractionResponseFormat
Derived
Inherited Members
Extension Methods

Constructors

InteractionResponseFormat(string)

Initializes a new response format with the given discriminator.

protected InteractionResponseFormat(string type)

Parameters

type string

The type discriminator.

Properties

ExtensionData

Fields returned by the API that this SDK does not model yet.

[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }

Property Value

Dictionary<string, JsonElement>

Type

The format type discriminator.

[JsonPropertyName("type")]
public string Type { get; }

Property Value

string