InMemoryDb stores a Team’s sessions and run history in the current Python process. Data is lost when the process exits.
Usage
In-Memory Storage for Teams
Store team sessions and run history in the current Python process with InMemoryDb.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Store team sessions and run history in the current Python process with InMemoryDb.
InMemoryDb stores a Team’s sessions and run history in the current Python process. Data is lost when the process exits.
uv pip install agno openai ddgs
from agno.agent import Agent
from agno.db.in_memory import InMemoryDb
from agno.models.openai import OpenAIResponses
from agno.team import Team
from agno.tools.hackernews import HackerNewsTools
from agno.tools.websearch import WebSearchTools
hn_researcher = Agent(
name="HackerNews Researcher",
model=OpenAIResponses(id="gpt-5.2"),
tools=[HackerNewsTools()],
)
web_searcher = Agent(
name="Web Searcher",
model=OpenAIResponses(id="gpt-5.2"),
tools=[WebSearchTools()],
)
db = InMemoryDb()
team = Team(
name="Research Team",
members=[hn_researcher, web_searcher],
db=db,
)
team.print_response("Find top AI news")