orchestrating-multi-agent-systems

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Orchestrating Multi Agent Systems

多Agent系统编排

Overview

概述

This skill provides automated assistance for the described functionality.
本Skill可为上述功能提供自动化协助。

Prerequisites

前提条件

Before using this skill, ensure you have:
  • Node.js 18+ installed for TypeScript agent development
  • AI SDK v5 package installed (
    npm install ai
    )
  • API keys for AI providers (OpenAI, Anthropic, Google, etc.)
  • Understanding of agent-based architecture patterns
  • TypeScript knowledge for agent implementation
  • Project directory structure for multi-agent systems
使用本Skill前,请确保您已具备:
  • 安装Node.js 18+用于TypeScript Agent开发
  • 安装AI SDK v5包(
    npm install ai
  • 各AI供应商的API密钥(OpenAI、Anthropic、Google等)
  • 了解基于Agent的架构模式
  • 具备TypeScript知识以实现Agent开发
  • 已搭建多Agent系统的项目目录结构

Instructions

操作步骤

  1. Create project directory with necessary subdirectories
  2. Initialize npm project with TypeScript configuration
  3. Install AI SDK v5 and provider-specific packages
  4. Set up configuration files for agent orchestration
  5. Write agent initialization code with AI SDK
  6. Configure system prompts for agent behavior
  7. Define tool functions for agent capabilities
  8. Implement handoff rules for inter-agent delegation
See
{baseDir}/references/implementation.md
for detailed implementation guide.
  1. 创建包含必要子目录的项目目录
  2. 初始化npm项目并配置TypeScript
  3. 安装AI SDK v5及供应商专属包
  4. 配置Agent编排的配置文件
  5. 使用AI SDK编写Agent初始化代码
  6. 为Agent行为配置系统提示词
  7. 定义Agent能力对应的工具函数
  8. 实现Agent间任务委派的移交规则
请查看
{baseDir}/references/implementation.md
获取详细实现指南。

Output

输出内容

  • TypeScript files with AI SDK v5 integration
  • System prompts tailored to each agent role
  • Tool definitions and implementations
  • Handoff rules and coordination logic
  • Workflow definitions for task sequences
  • Routing rules for intelligent task distribution
  • 集成AI SDK v5的TypeScript文件
  • 针对各Agent角色定制的系统提示词
  • 工具定义与实现代码
  • 移交规则与协调逻辑
  • 任务序列的工作流定义
  • 智能任务分发的路由规则

Error Handling

错误处理

See
{baseDir}/references/errors.md
for comprehensive error handling.
请查看
{baseDir}/references/errors.md
获取全面的错误处理方案。

Examples

示例

See
{baseDir}/references/examples.md
for detailed examples.
请查看
{baseDir}/references/examples.md
获取详细示例。

Resources

参考资源

  • AI SDK v5 official documentation for agent creation
  • Provider-specific integration guides (OpenAI, Anthropic, Google)
  • Tool definition and implementation examples
  • Handoff and routing pattern references
  • Coordinator-worker pattern for task distribution
  • AI SDK v5官方Agent创建文档
  • 各供应商专属集成指南(OpenAI、Anthropic、Google)
  • 工具定义与实现示例
  • 移交与路由模式参考
  • 用于任务分发的协调者-工作者模式