Skip to main content

praisonai.db

Wrapper PraisonAI Database - Ultra-simple persistence for agents. RECOMMENDED (simplified import): from praisonaiagents import Agent, db

or: from praisonai import Agent, db

agent = Agent( name=“Assistant”, 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)

Overview

This module provides components for 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\n # or: from praisonai import Agent, db\nThen use...