MemoryConfig
Defined in the Configuration module.Rust AI Agent SDK Memory configuration
Fields
| Name | Type | Description |
|---|---|---|
use_short_term | bool | Enable short-term memory (conversation history) |
use_long_term | bool | Enable long-term memory (persistent storage) |
provider | String | Memory provider (e.g., “memory”, “chroma”, “sqlite”) |
max_messages | usize | Maximum number of messages to keep in short-term memory |
Methods
new
with_long_term
provider
| Name | Type |
|---|---|
provider | impl Into<String> |
max_messages
| Name | Type |
|---|---|
max | usize |

