Qwen Agent is a framework for building intelligent agents. Think of an agent as a worker that uses a Large Language Model (LLM) to understand requests and generate responses, much like a brain. Agents can also use specialized tools (like web search or code execution) to perform tasks beyond simple text generation. They communicate using a standard message format. The framework supports advanced features like function calling (where the LLM decides to use a tool) and coordinating multiple agents working together (multi-agent systems).
Source Repository: https://github.com/QwenLM/Qwen-Agent/tree/main/qwen_agent
flowchart TD
A0["Agent (Base Class)
"]
A1["BaseChatModel (LLM Interface)
"]
A2["BaseTool (Tool Interface)
"]
A3["Message (Communication Structure)
"]
A4["MultiAgentHub (Agent Coordination)
"]
A5["Memory (Context/File Management & RAG)
"]
A6["FnCallAgent (Function Calling Agent)
"]
A7["BaseFnCallModel (LLM Function Calling)
"]
A0 -- "Uses LLM" --> A1
A0 -- "Uses Tool" --> A2
A0 -- "Processes Messages" --> A3
A6 -- "Inherits Agent" --> A0
A6 -- "Uses Memory" --> A5
A7 -- "Extends LLM" --> A1
A7 -- "Processes Messages for FnCall" --> A3
A4 -- "Manages Agents" --> A0
A5 -- "Uses Tools (RAG)" --> A2
- Agent (Base Class)
- BaseChatModel (LLM Interface)
- BaseTool (Tool Interface)
- Message (Communication Structure)
- BaseFnCallModel (LLM Function Calling)
- Memory (Context/File Management & RAG)
- FnCallAgent (Function Calling Agent)
- MultiAgentHub (Agent Coordination)
Generated by AI Codebase Knowledge Builder