v2026.5.3
All Bundles
Bundle Google Gemini API client. Supports text generation, multimodal inputs (image, audio, video), chat sessions, function calling, and caching. Set GOOGLE_API_KEY before use. Compile with -lib gemini.

Content

Prompt content

Inherits: EndPoint

Operations

AddPart #

Adds a part to the content

method : public : AddPart(part:Part) ~ Content

Parameters

NameTypeDescription
partPartto add

Return

TypeDescription
Contentself reference to Content

GetAllText #

Get all text

method : public : GetAllText() ~ String

Return

TypeDescription
Stringall text

GetFirstPart #

Get the first part

method : public : GetFirstPart() ~ Part

Return

TypeDescription
Partfirst part

GetParts #

Get all parts

method : public : GetParts() ~ Vector<Part>

Return

TypeDescription
Vector<Part>all parts

GetRole #

Get the role

method : public : GetRole() ~ String

Return

TypeDescription
Stringrole

New # constructor

Constructor

New(role:String)

Parameters

NameTypeDescription
roleStringrole

New # constructor

Constructor

New(parts:Vector<Part>, role:String)

Parameters

NameTypeDescription
partsVector<Part>message parts to add
roleStringrole

ToString #

String representation of the object

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation