Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
fn text(content: impl Into<String>) -> Self
Create a simple text response
Parameters:
| Name | Type |
|---|
content | impl Into<String> |
reply_to
fn reply_to(mut self, message_id: impl Into<String>) -> Self
Set reply to
Parameters:
| Name | Type |
|---|
message_id | impl Into<String> |
attachment
fn attachment(mut self, attachment: BotAttachment) -> Self
Add an attachment
Parameters:
| Name | Type |
|---|
attachment | BotAttachment |
action
fn action(mut self, action: BotAction) -> Self
Add an action
Parameters:
Source
View on GitHub
praisonai/src/protocols/mod.rs at line 421