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
| Name | Type |
|---|---|
role | impl Into<String> |
content | impl Into<String> |
Source
View on GitHub
praisonai/src/protocols/mod.rs at line 115
