Build AI Agents with DashScope (Qwen)
Alibaba Cloud's Qwen model family
Available DashScope (Qwen) Models
| Model | ID |
|---|---|
| Qwen Plus | qwen-plus |
| Qwen Max | qwen-max |
| Qwen Turbo | qwen-turbo |
| Qwen 2.5 72B Instruct | qwen2.5-72b-instruct |
Quick start code
agent.py
from agno.agent import Agent
from agno.models.dashscope import DashScope
agent = Agent(
name="My DashScope (Qwen) Agent",
model=DashScope(id="qwen-plus"),
instructions=["You are a helpful assistant."],
markdown=True,
)
agent.print_response("Hello! What can you help me with?")Install: pip install agno Then set DASHSCOPE_API_KEY