Qwen Agent

Agent framework and applications built upon Qwen>=3.0, featuring Function Calling, MCP, Code Interpreter, RAG, Chrome extension, etc.

About This Project

Qwen-Agent is a framework for developing large language model applications based on the instruction following, tool usage, planning, and memory capabilities of Qwen models. It provides atomic components such as LLM wrappers that support function calling and tool classes that inherit from a base tool interface, along with higher-level agent classes that orchestrate them. The framework includes optional modules for a Gradio-based graphical interface, retrieval-augmented generation (RAG), a Python code interpreter, and Model Context Protocol (MCP) integration, and it is installable from PyPI or source.

The project connects to either Alibaba Cloud's DashScope model service or a self-hosted OpenAI-compatible endpoint such as vLLM or Ollama. Its release history includes templates and demos for Qwen2.5, QwQ-32B, Qwen2.5-Math, Qwen3, and Qwen3-Coder, including support for parallel and multi-step tool calls and the reasoning_content field. The repository also documents a Qwen2.5-Math demo for tool-integrated reasoning, with a note that its Python executor is not sandboxed and is intended only for local testing.

Qwen-Agent is useful for developers who want to build custom assistants, document question-answering tools, or agents that call external tools and services using Qwen models. According to its README, it also powers the Qwen Chat application, making it relevant to researchers and engineers studying production-oriented agent design with open-weight models.

Project Details

Explore More Projects