In Memory Adapter • Rust AI Agent SDK

InMemoryAdapter: In-memory adapter (default)

InMemoryAdapter

Defined in the memory module.

Rust AI Agent SDK

In-memory adapter (default)

Fields

NameTypeDescription
historyConversationHistory–

Methods

new

rust
fn new(max_messages: usize) -> Self

Create a new in-memory adapter

Parameters:

NameType
max_messagesusize

Source

View on GitHub

praisonai/src/memory/mod.rs at line 101


Related Documentation