Skip to main content

MemoryMessage

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

Fields

NameTypeDescription
roleStringMessage role
contentStringMessage content
timestampu64Timestamp
metadataHashMap<StringMetadata

Methods

new

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

Source

View on GitHub

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