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

# Teams with Memory

> Store and recall user-specific memories across team runs.

Set `update_memory_on_run=True` to run `MemoryManager` on every team run. The manager can create or update user memories based on the latest input. Pass a custom `MemoryManager` with `delete_memories=True` to let it delete memories too.

```python theme={null}
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIResponses
from agno.team import Team

db = SqliteDb(db_file="agno.db")
user_id = "john_doe@example.com"

member = Agent(model=OpenAIResponses(id="gpt-5.2"))

team_with_memory = Team(
    name="Team with Memory",
    model=OpenAIResponses(id="gpt-5.2"),
    members=[member],
    db=db,
    update_memory_on_run=True,
)

team_with_memory.print_response("Hi! My name is John Doe.", user_id=user_id)
team_with_memory.print_response("What is my name?", user_id=user_id)
```

## Developer Resources

* [Memory overview](/memory/overview)
* [Team schema](/reference/teams/team)
* [Team memory cookbook](https://github.com/agno-agi/agno/tree/main/cookbook/03_teams/06_memory/)
