--- title: "ToolOrchestration" type: concept tags: [tools, integration, orchestration] sources: [multi-channel-assistant] last_updated: 2026-04-27 --- ## Definition Tool Orchestration(工具编排)是指通过统一的配置层和接口,集中管理多种外部工具(API、SaaS、CLI)的认证、调用和结果处理,使 AI Agent 能够跨多个工具执行复杂任务,而无需为每个工具单独编写集成代码。 ## Core Components 1. **配置层**:集中存储所有工具的 API Key、OAuth Token、环境变量(如 [[OpenClaw]] 的 config.yaml) 2. **适配器/包装器**:为每个工具提供统一调用接口([[ToolWrapper]]) 3. **意图路由**:根据用户请求自动选择对应工具(如 [[IntentDrivenRouting]]) ## Role in [[multi-channel-assistant]] OpenClaw 作为配置中心,一次配置 Google OAuth / Slack / Todoist / Asana,AI Agent 通过统一 Prompt 指令调用不同工具: - "Add [task] to my todo" → Todoist - "Create a card for [topic]" → Asana - "Schedule [event]" → gog calendar - "Email [person] about [topic]" → gog gmail ## Related Concepts - [[ToolWrapper]] — 工具的标准化封装接口 - [[IntentDrivenRouting]] — 基于意图选择工具 - [[Workflow-Engineering]] — 多工具组合形成工作流 - [[SubagentDelegation]] — 将工具调用委托给子 Agent ## Connections - [[OpenClaw]] ← provides ← [[ToolOrchestration]](核心实现框架) - [[multi-channel-assistant]] ← uses ← [[ToolOrchestration]]