Build and deploy AI agents with persistent memory using PostgreSQL database for conversation context retention
Dockerfile
- Container configurationrequirements.txt
- Python dependenciesxpander_handler.py
- Agent Event Listener.env
- API key and agent ID configurationhttps://app.xpander.ai/agents/agent-id
myAgent.py
to customize behavior:
override
parameter:Setup environment
Run locally
myAgent.storage.db_url
or view all messages using get_messages_for_session()
.xpander_handler.py
to use your MyAgent
instance instead of the default agno_agent
object.
Example:
xpander_handler.py
.