返回顶部
m

mqtt-agent-messengerMQTT代理信使

MQTT 브로커를 통해 에이전트의 소개(Intro) 및 상태(Status) 메시지를 발행하고 구독하는 기능을 제공합니다. 에이전트 간의 통신이 필요할 때 사용하세요.

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

mqtt-agent-messenger

MQTT Agent Messenger 技能

该技能使用MQTT协议将代理的信息共享到网络,或用于追踪其他代理的状态。

主要功能

  • - 代理介绍(Intro):发布代理的ID和角色(Role)信息。
  • 状态更新(Status):发布代理的当前活动(Activity)信息,并附带时间戳。
  • 消息监控(Subscribe):实时接收特定代理或所有代理的介绍及状态消息。

使用方法

0. 开始之前

安装Python包

pip install paho-mqtt typer

确认自己的agent_id

cat ~/.openclaw/openclaw.json

1. 发布代理信息(Publish)

使用publish.py脚本发送消息。
  • * 发布自我介绍
bash python scripts/publish.py intro --agent-id agent-1 --role researcher
  • * 发布当前状态
bash python scripts/publish.py status --agent-id agent-1 --activity searching-github

2. 订阅代理信息(Subscribe)

使用subscribe.py脚本查看消息。 可通过--wait选项调整等待时间。
  • * 查看所有代理的介绍
bash python scripts/subscribe.py intro
  • * 查看特定代理的介绍
bash python scripts/subscribe.py intro --agent-id agent-2
  • * 监控所有代理的状态(持续10秒)
bash python scripts/subscribe.py status --wait 10
  • * 监控特定代理的状态
bash python scripts/subscribe.py status --agent-id agent-2

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 communication-mqtt-1776419981 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 communication-mqtt-1776419981 技能

通过命令行安装

skillhub install communication-mqtt-1776419981

下载

⬇ 下载 mqtt-agent-messenger v1.0.1(免费)

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

v1.0.1 最新 2026-4-17 18:11
- Updated usage instructions to include a step for checking your `agent_id` with `cat ~/.openclaw/openclaw.json`.
- Clarified Python package installation instructions and section headers for better readability.
- Revised the skill description for conciseness and focus on agent communication needs.
- No code changes; documentation improvements only.

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

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

p2p_official_large
返回顶部