from agno.agent import Agent from agno.models.cohere import Cohere from agno.tools.duckduckgo import DuckDuckGoTools agent = Agent( model=Cohere(id="command-a-03-2025"), tools=[DuckDuckGoTools()], markdown=True, ) agent.print_response("Whats happening in France?")
Create a virtual environment
Terminal
python3 -m venv .venv source .venv/bin/activate
Set your API key
export CO_API_KEY=xxx
Install libraries
pip install -U cohere ddgs agno
Run Agent
python cookbook/models/cohere/tool_use.py