Memory Preset • Rust AI Agent SDK
MemoryPreset: Memory preset configuration
MemoryPreset
Defined in the presets module.
Rust AI Agent SDK
Memory preset configuration
Fields
| Name | Type | Description |
|---|---|---|
backend | String | Memory backend type |
options | HashMap<String | Additional configuration options |
serde_json | :Value> | Additional configuration options |
Methods
new
fn new(backend: impl Into<String>) -> SelfCreate a new memory preset
Parameters:
| Name | Type |
|---|---|
backend | impl Into<String> |
option
fn option(mut self, key: impl Into<String>, value: impl Into<serde_json::Value>) -> SelfAdd an option
Parameters:
| Name | Type |
|---|---|
key | impl Into<String> |
value | impl Into<serde_json::Value> |
Source
View on GitHubpraisonai/src/presets.rs at line 33