Memory API
Memory Layer Configuration Guide
Setting Up Memory Layer
The SDK provides a dedicated method for configuring and initializing memory components through the add_memory_layer
method:
The method communicates with the /core/memory/setup
endpoint for kernel-level configuration processing.
Memory Configuration
The MemoryLayer
class defines essential memory management parameters:
Key Components:
memory_limit
: Controls maximum memory allocation (default: 100MB)eviction_k
: Determines batch size for memory cleanupcustom_eviction_policy
: Allows implementation of specialized eviction strategies
Memory Operations
Query Structure
Memory operations are handled through the MemoryQuery
class:
Operation Types
Read Operations: Retrieve stored information
Write Operations: Store new data
Update Operations: Modify existing entries
Delete Operations: Remove stored data
Last updated