Multi-Agent Collaboration Skill
Overview
This skill streamlines the creation and management of multi-agent AI systems. It allows users to define a task with a natural language prompt, and the skill automatically generates a team of specialized agents, visualizes their organizational structure, and illustrates their collaborative workflows using industry-standard diagrams.
Usage
To use this skill, invoke the orchestrate_and_visualize.py script with a natural language prompt describing the multi-agent system you wish to generate and visualize.
orchestrate_and_visualize.py
This script takes a user prompt, generates a team of collaborative agents, and then produces visual representations of their organizational structure and collaboration patterns.
Input Parameters:
- *
prompt (string, required): A natural language description of the task or system for which you want to generate agents (e.g., "Create a software development team for an e-commerce platform.", "Conduct market research for a new AI product."). - INLINECODE3 (string, optional): The directory where the generated Mermaid files and PNG images will be saved. Defaults to the current directory.
Output:
The script will output the following files to the specified output_dir:
- *
org_chart.mmd: Mermaid code for the organizational chart. - INLINECODE6 : PNG image of the organizational chart.
- INLINECODE7 : Mermaid code for the swimlane diagram.
- INLINECODE8 : PNG image of the swimlane diagram.
Example Usage:
CODEBLOCK0
This will generate the agent team, their organizational chart, and a swimlane diagram showing their collaboration, saving all outputs to /home/ubuntu/marketing_agents/.
Resources
This skill includes the following resources:
scripts/
- *
generate_agents.py: Generates a set of agents and their initial configurations based on a given prompt. - INLINECODE12 : Generates Mermaid organizational charts and swimlane diagrams from agent data.
- INLINECODE13 : Orchestrates the agent generation and visualization process, rendering Mermaid diagrams to PNG images.
references/
- *
api_reference.md: (Placeholder) This file can be used for detailed API documentation or specific guidelines for agent interaction protocols.
templates/
- *
example_template.txt: (Placeholder) This file can be used for boilerplate code or standard output formats for agents.
多智能体协作技能
概述
该技能简化了多智能体AI系统的创建与管理。用户可通过自然语言提示定义任务,技能将自动生成专业智能体团队,可视化其组织结构,并使用行业标准图表展示其协作流程。
使用方法
使用该技能时,通过自然语言提示调用orchestrateandvisualize.py脚本,描述您希望生成并可视化的多智能体系统。
orchestrateandvisualize.py
该脚本接收用户提示,生成协作智能体团队,并输出其组织结构与协作模式的可视化表示。
输入参数:
- * prompt(字符串,必填):描述您希望生成智能体的任务或系统的自然语言描述(例如:为电商平台创建软件开发团队、对新产品进行市场调研)。
- output_dir(字符串,可选):保存生成的Mermaid文件和PNG图像的目录。默认为当前目录。
输出:
脚本将输出以下文件至指定output_dir:
- * orgchart.mmd:组织架构图的Mermaid代码。
- orgchart.png:组织架构图的PNG图像。
- swimlane.mmd:泳道图的Mermaid代码。
- swimlane.png:泳道图的PNG图像。
使用示例:
bash
python /home/ubuntu/skills/multi-agent-orchestrator/scripts/orchestrateandvisualize.py \
--prompt 为新型可持续能源产品设计营销活动。 \
--outputdir /home/ubuntu/marketingagents
这将生成智能体团队、组织架构图以及展示协作流程的泳道图,所有输出将保存至/home/ubuntu/marketing_agents/。
资源
该技能包含以下资源:
scripts/
- * generateagents.py:根据给定提示生成一组智能体及其初始配置。
- visualizecollaboration.py:根据智能体数据生成Mermaid组织架构图和泳道图。
- orchestrateandvisualize.py:编排智能体生成与可视化流程,将Mermaid图表渲染为PNG图像。
references/
- * api_reference.md:(占位符)该文件可用于详细的API文档或智能体交互协议的具体指南。
templates/
- * example_template.txt:(占位符)该文件可用于智能体的样板代码或标准输出格式。