返回顶部
a

agent-weave智能代理集群

Master-Worker Agent Cluster for parallel task execution. Use when building distributed agent systems with parallel processing needs, task orchestration, or MapReduce-style workflows.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
771
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

agent-weave

Agent-Weave

主从代理集群,支持并行任务执行与安全的父子通信。

适用场景

当您需要以下功能时,请使用 agent-weave:

  • - 构建具备并行处理能力的分布式代理系统
  • 编排多个协同工作的代理
  • 实现 MapReduce 风格的工作流
  • 跨工作代理扩展任务执行能力
  • 构建主从架构

快速开始

安装

bash
npm install agent-weave

基本用法

javascript
const { Loom } = require(agent-weave);

// 创建集群
const loom = new Loom();
const master = loom.createMaster(my-cluster);

// 创建工作代理
const workers = loom.spawnWorkers(master.id, 5, async (data) => {
// 处理数据
return { result: data * 2 };
});

// 执行任务
const results = await master.dispatch([1, 2, 3, 4, 5]);
console.log(results);

CLI 命令

bash

创建主节点


weave loom create-master --name my-cluster

生成工作代理

weave loom spawn --parent --count 5

列出代理

weave loom list --tree

功能特性

  • - 主从架构:编排多个工作代理
  • 并行执行:跨工作代理分发任务
  • 安全通信:强制父子关系约束
  • MapReduce 支持:内置映射归约工作流
  • 自动扩缩容:动态管理工作代理
  • 事件驱动:基于 EventEmitter 的通信机制

API 参考

Loom

用于创建和管理代理的工厂类。

Master

管理工作代理集群的主节点。

Worker

执行主节点分配的任务。

Thread

代理间的安全通信层。

Tapestry

用于 MapReduce 工作流的任务编排引擎。

许可证

MIT

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agent-weave-1776419934 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 agent-weave-1776419934 技能

通过命令行安装

skillhub install agent-weave-1776419934

下载

⬇ 下载 agent-weave v1.0.0(免费)

文件大小: 31.99 KB | 发布时间: 2026-4-17 18:39

v1.0.0 最新 2026-4-17 18:39
Initial release of agent-weave:

- Provides a Master-Worker Agent Cluster for parallel task execution and secure agent communication.
- Supports distributed agent systems, scalable orchestration, and MapReduce-style workflows.
- Includes API for Loom, Master, Worker, Thread, and Tapestry components.
- Offers CLI commands for managing clusters, spawning workers, and listing agents.
- Features event-driven communication and auto-scaling of worker agents.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部