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
Document
Document content.
public const string Document = "document"
Field Value
Image
Image content.
public const string Image = "image"
Field Value
Text
Text content.
public const string Text = "text"
Field Value
Video
Video content.
public const string Video = "video"
Field Value
Methods
IsKnown(string?)
Returns true when type is one of the content types listed above.
public static bool IsKnown(string? type)
Parameters
typestringThe discriminator value.
Returns
- bool
truefor a known content type.