Qwen-Agent  by QwenLM

Agent framework for LLM application development

created 1 year ago
10,580 stars

Top 4.8% on sourcepulse

GitHubView on GitHub
Project Summary

Qwen-Agent is an open-source framework for building LLM-powered applications, targeting developers and researchers. It leverages Qwen models to provide capabilities like function calling, code interpretation, RAG, and memory management, enabling sophisticated agentic behaviors and offering example applications such as a browser assistant and custom assistants.

How It Works

The framework is built around atomic components for LLMs and Tools, which can be composed into higher-level Agents. It supports function calling for tool integration and provides mechanisms for planning and memory. The architecture allows for customization by inheriting from base classes like BaseTool and Agent, facilitating the creation of bespoke AI assistants.

Quick Start & Requirements

  • Install via pip: pip install -U "qwen-agent[gui,rag,code_interpreter,mcp]" or pip install -U qwen-agent for minimal requirements.
  • Model Service: Requires either a DashScope API key (DASHSCOPE_API_KEY environment variable) or a self-hosted OpenAI-compatible API service (e.g., vLLM, Ollama).
  • For MCP features, Node.js, uv (>=0.4.18), Git, and SQLite are required.
  • Documentation: Official Documentation
  • Examples: Examples Directory

Highlighted Details

  • Supports Qwen >= 3.0 models, including Qwen2.5 and QwQ-32B.
  • Features include function calling, code interpreter (non-sandboxed), RAG for long documents (1M tokens), and Model Context Protocol (MCP) integration.
  • Offers a Gradio-based GUI for rapid deployment of agent demos.
  • Acts as the backend for Qwen Chat.

Maintenance & Community

  • Active development with recent updates (March 2025) for Qwen2.5 and QwQ-32B support.
  • Community channels: WeChat, Discord.

Licensing & Compatibility

  • The repository itself appears to be under a permissive license, but specific model licenses (Qwen) should be consulted for usage terms. The README does not explicitly state the license for the Qwen-Agent framework code.

Limitations & Caveats

  • The code interpreter is not sandboxed and is intended for local testing only, posing a security risk for production use.
  • Specific model compatibility and performance may vary based on the chosen Qwen model version and deployment method.
Health Check
Last commit

1 week ago

Responsiveness

1 day

Pull Requests (30d)
3
Issues (30d)
29
Star History
2,876 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems) and Robert Stojnic Robert Stojnic(Creator of Papers with Code).

Agent-S by simular-ai

1.2%
6k
Agentic framework for autonomous computer interaction
created 9 months ago
updated 1 day ago
Feedback? Help us improve.