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