Skip to main content

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

fn new(backend: impl Into<String>) -> Self
Create a new memory preset Parameters:
NameType
backendimpl Into&lt;String&gt;

option

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