from agno.agent import Agent from agno.models.dashscope import DashScope from agno.tools.duckduckgo import DuckDuckGoTools agent = Agent( model=DashScope(id="qwen-plus"), tools=[DuckDuckGoTools()], show_tool_calls=True, markdown=True, ) agent.print_response("What's happening in AI today?", stream=True)
Create a virtual environment
Terminal
python3 -m venv .venv source .venv/bin/activate
Set your API key
export DASHSCOPE_API_KEY=xxx
Install libraries
pip install -U agno duckduckgo-search
Run Agent
python cookbook/models/dashscope/tool_use.py
Was this page helpful?