Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

MemoryProtocol

Defined in the protocols module.
Rust AI Agent SDK Protocol for memory implementations.

Methods

store

async fn store(&mut self, role: &str, content: &str) -> Result<()>
Store a message in memory Parameters:
NameType
role&str
content&str

history

async fn history(&self) -> Result<Vec<MemoryMessage>>
Get conversation history

clear

async fn clear(&mut self) -> Result<()>
Clear memory
async fn search(&self, query: &str, limit: usize) -> Result<Vec<MemoryMessage>>
Search memory Parameters:
NameType
query&str
limitusize

Source

View on GitHub

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

Rust Memory

Rust Sessions

Rust Knowledge