from agno.agent import Agentfrom agno.models.aws import Claudefrom agno.storage.postgres import PostgresStoragefrom agno.tools.duckduckgo import DuckDuckGoToolsdb_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"agent = Agent( model=Claude(id="anthropic.claude-3-5-sonnet-20240620-v1:0"), 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.aws import Claudefrom agno.storage.postgres import PostgresStoragefrom agno.tools.duckduckgo import DuckDuckGoToolsdb_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"agent = Agent( model=Claude(id="anthropic.claude-3-5-sonnet-20240620-v1:0"), 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?")