Prerequisites
The following example requires thememorisdk
library.
Example
The following agent can maintain persistent memory across conversations:Toolkit Params
Parameter | Type | Default | Description |
---|---|---|---|
database_connect | Optional[str] | sqlite:///agno_memori_memory.db | Database connection string (SQLite, PostgreSQL, etc.). |
namespace | Optional[str] | "agno_default" | Namespace for organizing memories (e.g., “agent_v1”, “user_session”). |
conscious_ingest | bool | True | Whether to use conscious memory ingestion. |
auto_ingest | bool | True | Whether to automatically ingest conversations into memory. |
verbose | bool | False | Enable verbose logging from Memori. |
config | Optional[Dict] | None | Additional Memori configuration. |
auto_enable | bool | True | Automatically enable the memory system on initialization. |
enable_search_memory | bool | True | Enable memory search functionality. |
enable_record_conversation | bool | True | Enable conversation recording functionality. |
enable_get_memory_stats | bool | True | Enable memory statistics retrieval. |
all | bool | False | Enable all available tools. |
Toolkit Functions
Function | Description |
---|---|
search_memory | Search through stored memories using queries. |
record_conversation | Add important information or facts to memory. |
get_memory_stats | Get statistics about the memory system. |
include_tools
or exclude_tools
to modify the list of tools the agent has access to. Learn more about selecting tools.