Skip to content

zachary62/Qwen-Agent-Tutorial

Repository files navigation

Tutorial: Qwen Agent

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
Loading

Chapters

  1. Agent (Base Class)
  2. BaseChatModel (LLM Interface)
  3. BaseTool (Tool Interface)
  4. Message (Communication Structure)
  5. BaseFnCallModel (LLM Function Calling)
  6. Memory (Context/File Management & RAG)
  7. FnCallAgent (Function Calling Agent)
  8. MultiAgentHub (Agent Coordination)

Generated by AI Codebase Knowledge Builder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published