image_agent.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export your DashScope API key
4
Use a tool-capable vision model
Replace
DashScope(id="qwen-vl-plus") with DashScope(id="qwen3-vl-plus") in the saved file.5
Replace the unavailable image
Replace
https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/1200px-Cat03.jpg with https://agno-public.s3.amazonaws.com/images/krakow_mariacki.jpg in the saved file.6
Run the example
Save the code above as
image_agent.py, then run: