Specify custom table names when initializing your database connection.
selecting_tables.py
Copy
Ask AI
from agno.agent import Agentfrom agno.db.sqlite import SqliteDb# Setup the SQLite database with custom table namesdb = SqliteDb( db_file="tmp/data.db", # Selecting which tables to use session_table="agent_sessions", memory_table="agent_memories", metrics_table="agent_metrics",)# Setup a basic agent with the SQLite databaseagent = Agent( db=db, enable_user_memories=True, add_history_to_context=True, add_datetime_to_context=True,)# The Agent sessions and runs will now be stored in SQLite with custom table namesagent.print_response("How many people live in Canada?")agent.print_response("And in Mexico?")agent.print_response("List my messages one by one")