Table of Contents

Class InteractionContentTypes

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Known values of the type discriminator of InteractionContent.

public static class InteractionContentTypes
Inheritance
InteractionContentTypes
Inherited Members

Fields

Audio

Audio content.

public const string Audio = "audio"

Field Value

string

Document

Document content.

public const string Document = "document"

Field Value

string

Image

Image content.

public const string Image = "image"

Field Value

string

Text

Text content.

public const string Text = "text"

Field Value

string

Video

Video content.

public const string Video = "video"

Field Value

string

Methods

IsKnown(string?)

Returns true when type is one of the content types listed above.

public static bool IsKnown(string? type)

Parameters

type string

The discriminator value.

Returns

bool

true for a known content type.