Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
MongoDB state store setup
pip install "praisonaiagents[tools]"
docker run -d --name praison-mongo -p 27017:27017 mongo
from praisonaiagents import Agent agent = Agent( name="Assistant", instructions="You are a helpful assistant.", memory={ "backend": "mongodb", "db": "mongodb://localhost:27017/praisonai", "session_id": "my-session" } ) response = agent.start("Hello!") print(response)
mongodb://localhost:27017/database mongodb://user:password@host:port/database
export PRAISON_STATE_URL="mongodb://localhost:27017/praisonai"
import os from praisonaiagents import Agent agent = Agent( name="Assistant", memory={"db": os.getenv("PRAISON_STATE_URL")} )
# Validate connection praisonai persistence doctor \ --state-url "mongodb://localhost:27017/praisonai"
motor