Content
Prompt content
Operations
AddPart
Adds a part to the content
method : public : AddPart(part:Part) ~ Content
Parameters
Name | Type | Description |
---|---|---|
part | Part | to add |
Return
Type | Description |
---|---|
Content | self reference to Content |
GetFirstPart
Get the first part
method : public : GetFirstPart() ~ Part
Return
Type | Description |
---|---|
Part | first part |
GetParts
Get all parts
method : public : GetParts() ~ Vector<Part>
Return
Type | Description |
---|---|
Vector<Part> | all parts |
New
Constructor
New(parts:Vector<Part>, role:String)
Parameters
Name | Type | Description |
---|---|---|
parts | Vector<Part> | message parts to add |
role | String | role |
ToString
String representation of the object
method : public : ToString() ~ String
Return
Type | Description |
---|---|
String | string representation |