Files
nexus/wiki/concepts/Agent-Orchestration.md
2026-05-03 05:42:12 +08:00

34 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Agent-Orchestration"
type: concept
tags: []
---
## Definition
Agent 编排Agent Orchestration是指通过工作流引擎统一协调和调度多个 AI Agent使它们协同工作完成复杂任务的管理模式。
## Key Patterns
- **集中式编排**单一工作流引擎n8n控制多个 Agent 的调用顺序和数据流转
- **并行调用**:同一工作流中同时调用多个 Agent如 Hermes + OpenClaw
- **条件路由**:根据前一个 Agent 的输出决定调用哪个 Agent
## n8n 编排架构示例
```
n8n Workflow
├─ Trigger (Telegram/Email/Webhook...)
├─ HTTP Request Node 1 → Hermes Agent (port 8642)
├─ HTTP Request Node 2 → OpenClaw Agent (port 18789)
└─ Output Node (Telegram/File/Email...)
```
## 优势
- **统一入口**:用户通过单一界面与多个 Agent 交互
- **数据流转**:一个 Agent 的输出可直接作为另一个 Agent 的输入
- **可观测性**:工作流引擎提供执行日志和状态追踪
- **灵活性**:可随时增删 Agent不影响整体架构
## Related
- [[n8n]] 是本 Wiki 中记录的编排工具
- [[Hermes-Agent]] 和 [[OpenClaw]] 是被编排的 Agent 示例
- [[OpenAI-Compatible-API]] 是连接 Agent 的标准接口