Memory Preset • Rust AI Agent SDK

MemoryPreset: Memory preset configuration

MemoryPreset

Defined in the presets module.

Rust AI Agent SDK

Memory preset configuration

Fields

NameTypeDescription
backendStringMemory backend type
optionsHashMap<StringAdditional configuration options
serde_json:Value>Additional configuration options

Methods

new

rust
fn new(backend: impl Into<String>) -> Self

Create a new memory preset

Parameters:

NameType
backendimpl Into&lt;String&gt;

option

rust
fn option(mut self, key: impl Into<String>, value: impl Into<serde_json::Value>) -> Self

Add an option

Parameters:

NameType
keyimpl Into&lt;String&gt;
valueimpl Into&lt;serde_json::Value&gt;

Source

View on GitHub

praisonai/src/presets.rs at line 33


Related Documentation