from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.tools.duckduckgo import DuckDuckGoTools
# Setup the SQLite database
db = SqliteDb(db_file="tmp/data.db")
# Setup a basic agent with the SQLite database
agent = Agent(
db=db,
tools=[DuckDuckGoTools()],
add_history_to_context=True,
add_datetime_to_context=True,
)
# The Agent sessions and runs will now be stored in SQLite
agent.print_response("How many people live in Canada?")
agent.print_response("What is their national anthem?")
agent.print_response("List my messages one by one")