Configures a memory manager that stores and retrieves memories across agent conversations.
agno/memory/manager
Config
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
db | Dependency | Yes | — | Reference to agno/db/postgres for memory storage |
model | Dependency | No | — | Reference to agno/models/anthropic or agno/models/openai for memory classification |
system_message | string | No | — | System message for memory classification |
memory_capture_instructions | string | No | — | Instructions for what to capture as memories |
additional_instructions | string | No | — | Additional instructions for memory processing |
add_memories | boolean | No | true | Allow creating new memories |
update_memories | boolean | No | true | Allow updating existing memories |
delete_memories | boolean | No | false | Allow deleting memories |
clear_memories | boolean | No | false | Allow clearing all memories |
debug_mode | boolean | No | false | Enable debug logging |
Outputs
| Field | Type | Description |
|---|---|---|
spec | object | Serialized memory manager spec for runtime reconstruction |
Dependencies
Depends on:agno/db/postgres(required) — database for memory storageagno/models/anthropicoragno/models/openai(optional) — model for memory classification
agno/agent— in thememoryfieldagno/team— in thememoryfield
Example
Notes
- The memory manager stores memories in the PostgreSQL database configured via
db. - When a
modelis provided, it is used to classify and process memories. Without a model, memories are stored as-is. - To use memory with an agent, you also need to enable
enable_agentic_memory: trueon the agent config.