Skip to main content

BotMessage

Defined in the protocols module.
Rust AI Agent SDK A bot message.

Fields

NameTypeDescription
idStringMessage ID
sender_idStringSender ID
sender_nameOption<String>Sender name
contentStringMessage content
channel_idOption<String>Channel/room ID
timestampu64Timestamp
metadataHashMap<StringMetadata

Methods

new

fn new(sender_id: impl Into<String>, content: impl Into<String>) -> Self
Create a new bot message Parameters:
NameType
sender_idimpl Into&lt;String&gt;
contentimpl Into&lt;String&gt;

Source

View on GitHub

praisonai/src/protocols/mod.rs at line 384