Qwen-Agent

Stale
GitHub Python Apache-2.0

Description

Agent framework built on Qwen LLM, featuring function calling, MCP tool integration, code interpreter, RAG, and browser extension support.

Key Features

  • Built on the Qwen family of LLMs, supporting Qwen2.5, QwQ-32B, Qwen3, and the latest Qwen3.5 models
  • Built-in function calling with parallel, multi-step, and multi-turn tool calls, compatible with vLLM and DashScope API
  • Supports MCP (Model Context Protocol) for seamless integration with external tools and data sources
  • Ships with ready-to-use example applications including Code Interpreter, RAG, and Browser Assistant
  • Offers atomic components (LLM, Tool) and high-level Agent abstractions for rapid custom agent development
  • Integrates Gradio 5 GUI for visual debugging and interactive development

Use Cases

πŸ’‘ Building intelligent assistants with tool-calling capabilities for complex multi-step task automation
πŸ’‘ Developing private agent applications based on Qwen models with local deployment support
πŸ’‘ Building enterprise-grade RAG systems for document retrieval and intelligent Q&A
πŸ’‘ Leveraging the code interpreter for data analysis and mathematical reasoning tasks
πŸ’‘ Integrating third-party tools via MCP protocol to extend agent's external interaction capabilities

Quick Start

Install: pip install -U 'qwen-agent[gui,rag,code_interpreter,mcp]'; set DASHSCOPE_API_KEY env var or deploy locally with vLLM/Ollama; create LLM config and register custom tools; instantiate Assistant Agent and call agent.run() to execute tasks.

Related Projects

Related Articles