from agno.agent import Agentfrom agno.models.lmstudio import LMStudiofrom agno.storage.postgres import PostgresStoragefrom agno.tools.duckduckgo import DuckDuckGoToolsdb_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"agent = Agent( model=LMStudio(id="qwen2.5-7b-instruct-1m"), storage=PostgresStorage(table_name="agent_sessions", db_url=db_url), tools=[DuckDuckGoTools()], add_history_to_messages=True,)agent.print_response("How many people live in Canada?")agent.print_response("What is their national anthem called?")
from agno.agent import Agentfrom agno.models.lmstudio import LMStudiofrom agno.storage.postgres import PostgresStoragefrom agno.tools.duckduckgo import DuckDuckGoToolsdb_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"agent = Agent( model=LMStudio(id="qwen2.5-7b-instruct-1m"), storage=PostgresStorage(table_name="agent_sessions", db_url=db_url), tools=[DuckDuckGoTools()], add_history_to_messages=True,)agent.print_response("How many people live in Canada?")agent.print_response("What is their national anthem called?")