BotMessage
Defined in the protocols module.Rust AI Agent SDK A bot message.
Fields
| Name | Type | Description |
|---|---|---|
id | String | Message ID |
sender_id | String | Sender ID |
sender_name | Option<String> | Sender name |
content | String | Message content |
channel_id | Option<String> | Channel/room ID |
timestamp | u64 | Timestamp |
metadata | HashMap<String | Metadata |
Methods
new
| Name | Type |
|---|---|
sender_id | impl Into<String> |
content | impl Into<String> |
Source
View on GitHub
praisonai/src/protocols/mod.rs at line 384
