Memory Message • Rust AI Agent SDK
MemoryMessage: A message stored in memory.
MemoryMessage
Defined in the protocols module.
Rust AI Agent SDK
A message stored in memory.
Fields
| Name | Type | Description |
|---|---|---|
role | String | Message role |
content | String | Message content |
timestamp | u64 | Timestamp |
metadata | HashMap<String | Metadata |
Methods
new
fn new(role: impl Into<String>, content: impl Into<String>) -> SelfCreate a new memory message
Parameters:
| Name | Type |
|---|---|
role | impl Into<String> |
content | impl Into<String> |
Source
View on GitHubpraisonai/src/protocols/mod.rs at line 115