v2025.6.2
All Bundles

Content

Prompt content

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

New(role:String)

Parameters

NameTypeDescription
roleStringrole

New

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