All Bundles

Content

Prompt content

Derived from: EndPoint

Operations

New

Constructor

New(role:String)
Parameters
NameTypeDescription
roleStringrole

Constructor

New(parts:Vector<Part>, role:String)
Parameters
NameTypeDescription
partsVector<Part>message parts to add
roleStringrole

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

ToString

String representation of the object

method : public : ToString() ~ String
Return
TypeDescription
Stringstring representation