Table of Contents

Class GeminiContent

The base structured datatype containing multi-part content of a message. It's a Message in a demonic form.

public class GeminiContent
Inheritance
object
GeminiContent

Constructors

GeminiContent()

public GeminiContent()

GeminiContent(ChatRole, Blob)

public GeminiContent(ChatRole role, Blob inlineData)

Parameters

role ChatRole
inlineData Blob

GeminiContent(ChatRole, GeminiContentPart[])

public GeminiContent(ChatRole role, GeminiContentPart[] parts)

Parameters

role ChatRole
parts GeminiContentPart[]

GeminiContent(ChatRole, string)

public GeminiContent(ChatRole role, string text)

Parameters

role ChatRole
text string

Properties

Parts

Ordered Parts that constitute a single message. Parts may have different MIME types.

public GeminiContentPart[] Parts { get; set; }

Property Value

GeminiContentPart[]

Role

Optional. The producer of the content. Must be either User or ChatRole.Model. Useful to set for multi-turn conversations, otherwise can be left blank or unset.

public ChatRole Role { get; set; }

Property Value

ChatRole

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.