ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
# Multi-Agent Examples
|
||||
|
||||
This directory contains a variety of multi-agent system examples built on the AWorld framework.
|
||||
These examples demonstrate three core paradigms of agent **collaboration**, **coordination**, and **workflow**,
|
||||
corresponding to **Swarm** of Handoff, Team, and Workflow respectively.
|
||||
|
||||
## Examples of Paradigm
|
||||
|
||||
- **collaborative/**
|
||||
- Multi-agent collaboration scenarios.
|
||||
- **debate/**
|
||||
Example of agents engaging in a debate, including affirmative, negative, and moderator agents. Demonstrates turn-based argumentation and multi-agent dialogue.
|
||||
- **travel/**
|
||||
Multi-agent interaction for travel planning.
|
||||
|
||||
- **coordination/**
|
||||
- Multi-agent coordination and orchestration patterns.
|
||||
- **custom_agent/**
|
||||
Example for customizing agent roles and behaviors in a coordinated system.
|
||||
- **master_worker/**
|
||||
Demonstrates the TeamSwarm pattern, where a lead agent (PlanAgent) coordinates with specialized agents (SearchAgent, SummaryAgent) to solve complex tasks.
|
||||
Includes both multi-action and single-action planning versions.
|
||||
See `master_worker/README.md` for detailed workflow and advantages of each approach.
|
||||
- **deepresearch/**
|
||||
Advanced research scenario with a planner agent, web search agent, and reporting agent.
|
||||
Shows how to break down user queries, plan search strategies, and synthesize results using a TeamSwarm.
|
||||
|
||||
- **workflow/**
|
||||
- Workflow automation with multi-agent.
|
||||
- **search/**
|
||||
Example of agents collaborating to perform search and data aggregation tasks.
|
||||
|
||||
## Key Concepts
|
||||
|
||||
- **Collaboration:**
|
||||
Agents work together to achieve a common goal, such as debating or planning a trip.
|
||||
- **Coordination:**
|
||||
Agents are orchestrated in a structured pattern to solve complex problems.
|
||||
- **Workflow Automation:**
|
||||
Agents automate multi-step processes, such as planning, searching, and summarizing information.
|
||||
|
||||
## Usage
|
||||
|
||||
- Each subdirectory contains its own entry point (usually `run.py`) and may include additional configuration or requirements files.
|
||||
- Before running any example, ensure you have installed all required dependencies and set the necessary environment variables (e.g., LLM provider credentials, API keys).
|
||||
- For detailed instructions, refer to the README or comments within each subdirectory.
|
||||
Reference in New Issue
Block a user