← GUIDES

GUIDE / SETUP NOTE

Agno Agent With Memory: Review What It Keeps

Build an Agno agent with SQLite memory, require a person to confirm sensitive tool calls, and review or delete what the agent remembers about each user.

7 Nov 2026Checked 2026-10-28
Agno agent storing user memories in SQLite while a person confirms a tool call and reviews stored memories

Agno by Agno and contributors, Apache-2.0, v3.1.11 (released 2026-10-27). Parameters and defaults confirmed in the installed v3.1.11 package on 2026-10-28.

An Agno agent can remember facts about each user across conversations by storing them in a database such as SQLite. Set it up so a person confirms any tool call that changes something, and so someone can list and delete what the agent has stored about a user.

The agent remembers and proposes. A person confirms actions and owns the memory.

What Agno is (checked on v3.1.11)

Agno is an Apache-2.0 Python framework for building agents, teams and workflows. Version 3.1.11 was released on 2026-10-27. We installed it and checked the parameters below against the package.

Based on Agno, by Agno and contributors.

Step 1: Install, pinned

bash
pip install "agno==3.1.11" openai "sqlalchemy[asyncio]"
export OPENAI_API_KEY="..."   # set it in your shell; never commit or print it
export AGNO_TELEMETRY=false

Two notes from our install:

  • The docs install plain sqlalchemy. In our environment that pulled SQLAlchemy 2.1.6 without greenlet, and importing agno.db.sqlite failed with an error asking for sqlalchemy[asyncio]. Installing that extra fixed it.
  • In v3.1.11, Agent has telemetry=True by default, and the code sends a record of each run (session ID, run ID, SDK version and run data) in the background. Setting AGNO_TELEMETRY=false or passing telemetry=False turns this off.

Step 2: Add memory, and choose the mode on purpose

The memory docs describe two modes:

  • Automatic (update_memory_on_run=True): every user message is processed into memories.
  • Agentic (enable_agentic_memory=True): the model gets an update_user_memory tool and decides when to use it.

Both default to False in v3.1.11, so nothing is remembered unless you turn it on. The docs also say automatic extraction can add, update and delete memories, while agentic mode only creates and updates them unless you configure the memory manager to allow deletion.

Automatic mode is easier to predict, so start there:

python
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIResponses

db = SqliteDb(db_file="tmp/memory.db")

agent = Agent(
    model=OpenAIResponses(id="gpt-5.4-mini"),
    db=db,
    update_memory_on_run=True,
    telemetry=False,
)

agent.print_response("I prefer email updates and morning meetings.",
                     user_id="sarah", session_id="onboarding")
agent.print_response("How should you schedule my project updates?",
                     user_id="sarah", session_id="project-planning")

This follows the docs example. Memories are tied to user_id, so the second session can recall the first. Use a stable ID from your own app, not something a user can type in.

Step 3: Confirm tool calls that change things

Agno's user confirmation feature pauses a run before a marked tool is called. Mark the tool with @tool(requires_confirmation=True). The run comes back with is_paused set, and you confirm or reject each requirement before calling continue_run().

python
from agno.tools import tool

@tool(requires_confirmation=True)
def send_update(to: str, body: str) -> str:
    """Send a project update. Demonstration only: nothing is sent."""
    return f"Update queued for {to}"

agent = Agent(
    model=OpenAIResponses(id="gpt-5.4-mini"),
    tools=[send_update],
    db=db,                      # needed to continue a run by run_id
    update_memory_on_run=True,
    telemetry=False,
)

run = agent.run("Send Sarah a short project update.", user_id="sarah")

while run.is_paused:
    for req in run.active_requirements:
        if not req.needs_confirmation:
            continue
        t = req.tool_execution
        print(f"{t.tool_name}({t.tool_args})")
        if input("Confirm? (y/N) ").strip().lower() == "y":
            req.confirm()
        else:
            req.reject()
            t.confirmation_note = "Rejected by reviewer. Do not retry."
    run = agent.continue_run(run_id=run.run_id, requirements=run.requirements)

print(run.content)

The loop and confirmation_note come from the docs. For toolkits, requires_confirmation_tools=[...] marks only some of a toolkit's tools. The docs also note that application code "must authorize the caller's access to that session and its pending requirements", so in a real app, check that the person confirming is allowed to.

Step 4: Review and delete what the agent remembers

The docs show how to list a user's memories:

python
for m in agent.get_user_memories(user_id="sarah") or []:
    print(m.memory_id, m.memory)

In v3.1.11 the SQLite database also has delete_user_memory(memory_id, user_id). Make it a routine:

  1. After the first few conversations, list each test user's memories and read them.
  2. Delete anything wrong, sensitive or that the user didn't mean to share.
  3. Give users a way to ask what's stored and have it removed.

The docs say stored memories are added to the model's context on later runs. Anything wrong in memory becomes part of the next answer, so the review matters.

Memories are stored in a table named agno_memories by default. The database file holds personal data, so keep it out of git and back it up like any user data.

Takeaway

Agno makes memory a couple of parameters. Pin v3.1.11, turn telemetry off if you prefer, start with automatic memory in SQLite, mark every tool that changes something with requires_confirmation=True, and make reviewing and deleting memories part of the job.

Next step: run the memory example with a test user, list what it stored, and delete one entry to confirm your clean-up path works.

How we check the tools we list is on our verification page.

Good setups, worth keeping. Request email updates on the home page, then confirm by email. No subscription starts until you confirm. Or find an agent for the job.

Part of: Which setup should I use to add human approval to an agent?

Your privacy choices

Choose optional tools. Rejecting them keeps the setup library available. Advertising consent stays off.

Choices stay in this browser for 90 days. You can change them using Privacy settings. Privacy and cookie details