InMemoryDb stores sessions, memories, metrics, evaluation runs, knowledge, and cultural knowledge in the current Python process.
Usage
Install theopenai package:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use in-memory storage for testing and development.
InMemoryDb stores sessions, memories, metrics, evaluation runs, knowledge, and cultural knowledge in the current Python process.
InMemoryDb for demos and tests. Use a persistent database for production and for features that InMemoryDb does not implement, including tracing, spans, and learning storage.openai package:
uv pip install openai
from agno.agent import Agent
from agno.db.in_memory import InMemoryDb
db = InMemoryDb()
agent = Agent(db=db)
Was this page helpful?