Scripts2026年4月2日·1 分钟阅读

Qwen-Agent — Build AI Agents on Qwen Models

Agent framework by Alibaba with function calling, code interpreter, RAG, and MCP support. Built for Qwen 3.0+. 15K+ stars.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

```bash pip install -U "qwen-agent[gui,rag,code_interpreter,mcp]" ``` ```python from qwen_agent.agents import Assistant agent = Assistant( llm={"model": "qwen-max", "api_key": "YOUR_KEY"}, function_list=["code_interpreter", "web_search"], system_message="你是一个数据分析师。" ) messages = [{"role": "user", "content": "分析 2025 年 AI 融资趋势"}] for response in agent.run(messages): print(response) ``` ---
## 简介 Qwen-Agent 是阿里巴巴通义千问团队开源的 AI 代理框架,基于 Qwen 模型(3.0+)构建。拥有 15,800+ GitHub stars,提供原生函数调用、Docker 沙盒代码解释器、RAG 文档理解管线、MCP 工具发现和内置 Gradio 界面。这是在千问生态中构建 AI Agent 的官方方式。 适用于:Qwen 系列模型(qwen-max、qwen-plus、qwen-turbo)、DashScope API、本地 Qwen 部署。适合在千问生态中开发 AI 代理的开发者。 --- ## 核心功能 ### 函数调用 原生函数调用,自动解析工具 schema,支持自定义工具注册。 ### 代码解释器 在隔离的 Docker 沙盒中执行 Python 代码,支持数据分析和图表生成。 ### RAG 文档理解 内置文档解析、分块、向量检索和引用追踪。 ### MCP 支持 通过模型上下文协议连接外部工具和数据源。 ### 多 Agent 协作 支持 GroupChat 和 Router 模式,将任务路由到专门的代理。 ---
🙏

来源与感谢

> Created by [QwenLM](https://github.com/QwenLM) (Alibaba Qwen Team). Licensed under Apache-2.0. > > [Qwen-Agent](https://github.com/QwenLM/Qwen-Agent) — ⭐ 15,800+

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产