> ## Documentation Index
> Fetch the complete documentation index at: https://spacesail.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Memori

> MemoriTools provides persistent memory capabilities for agents with conversation history, user preferences, and long-term context.

## Prerequisites

The following example requires the `memorisdk` library.

```shell theme={null}
pip install -U memorisdk
```

## Example

The following agent can maintain persistent memory across conversations:

```python theme={null}
from agno.agent import Agent
from agno.tools.memori import MemoriTools

agent = Agent(
    instructions=[
        "You are a memory-enhanced assistant with persistent conversation history",
        "Remember important information about users and their preferences",
        "Use stored memories to provide personalized and contextual responses",
        "Maintain conversation continuity across sessions",
    ],
    tools=[
        MemoriTools(database_connect="sqlite:///memori.db", namespace="quick-memori")
    ],
)

agent.print_response("Remember that I prefer vegetarian recipes and I'm learning to cook Italian cuisine", stream=True)
```

## 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.       |

You can use `include_tools` or `exclude_tools` to modify the list of tools the agent has access to. Learn more about [selecting tools](/concepts/tools/selecting-tools).

## Developer Resources

* View [Tools Source](https://github.com/agno-agi/agno/blob/main/libs/agno/agno/tools/memori.py)
* View [Cookbook](https://github.com/agno-agi/agno/tree/main/cookbook/tools/memori_tools.py)
* [Memori SDK Documentation](https://docs.memori.ai/)
* [Memory Management Best Practices](https://memori.ai/best-practices)
