BotResponse
Defined in the protocols module.Rust AI Agent SDK A bot response.
Fields
| Name | Type | Description |
|---|---|---|
content | String | Response content |
reply_to | Option<String> | Reply to message ID |
attachments | Vec<BotAttachment> | Attachments |
actions | Vec<BotAction> | Actions/buttons |
Methods
text
| Name | Type |
|---|---|
content | impl Into<String> |
reply_to
| Name | Type |
|---|---|
message_id | impl Into<String> |
attachment
| Name | Type |
|---|---|
attachment | BotAttachment |
action
| Name | Type |
|---|---|
action | BotAction |
Source
View on GitHub
praisonai/src/protocols/mod.rs at line 421
