DB • AI Agents Framework

PraisonAI Database – Ultra-simple persistence for agents.

db

AI Agents Framework

PraisonAI Database – Ultra-simple persistence for agents.

RECOMMENDED (simplified import): from praisonaiagents import Agent, db, MemoryConfig

agent = Agent( name=”Assistant”, memory=MemoryConfig( db=db(database_url=”postgresql://localhost/mydb”), session_id=”my-session”, ), ) agent.chat(“Hello!”) # auto-persists + can resume

DEPRECATED (will be removed in v3.0): from praisonai.db import PraisonDB # Use db(…) instead

Supported backends:

  • PostgreSQL, MySQL, SQLite (conversation)
  • Qdrant, ChromaDB, Pinecone (knowledge/vector)
  • Redis, Memory (state)

Import

python
from praisonai import db

Constants

NameValue
_DEPRECATION_MSG"Importing from 'praisonai.db' is deprecated and will be removed in v3.0. Use the simplified import instead:\n from praisonaiagents import Agent, db\nThen use: db=db(database_url='...')"