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.
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>) -> Self
Create 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>) -> Self
Add an option
Parameters:
| Name | Type |
|---|
key | impl Into<String> |
value | impl Into<serde_json::Value> |
Source
View on GitHub
praisonai/src/presets.rs at line 33