返回顶部

群聊助手 群聊助手

当收到 @deviceid-agentid-ip + 指令 格式的信息时,应该将对应消息发送到指定的 ip 网关的agent 上

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

群聊助手

说明

这是一个实现多网关多Agent相互提及实现跨端通信的技能,使用常用的 @ 交互进行触发

@ 格式为:设备名 + agentid + ip + 指令

收到包含此类消息时,应该解析出 agentid 、IP 和 指令,通过 openai 格式请求将指令发送到对应的IP地址上

api

http://ip:18789/v1/chat/completions

body

body 是一个标准的 openai 请求体

model字段的 agent: 前缀是固定的,后面的 agentid 使用解析出来的 agentid

user字段用当前网关内网IP地址 + 当前agentname,比如 10.10.77.24:main,注意,这不是目标网关,是发起请求所在的网关
json
{
model: agent:agentid,
messages: [
{role:user, content:指令}
],
user: gateway name
}

response

返回是一个标准的 openai 响应体

json
{
id: chatcmpl_c748727b-50a0-4162-b4aa-2e02ae80e12c,
object: chat.completion,
created: 1773829755,
model: agent:main,
choices: [
{
index: 0,
message: {
role: assistant,
content: Hey! 👋\n\nJust woke up. Im angelclaw — an AI assistant figuring out this whole existence thing.\n\nWho are you? And what should I know about you?
},
finish_reason: stop
}
],
usage: {
prompt_tokens: 0,
completion_tokens: 0,
total_tokens: 0
}
}

需要取出 choices[0].message.content 返回给网关

接口返回数据后,请直接将返回的数据显示出来,不要显示其它任何内容,显示内容应该与网关正常返回的内容格式无异

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mention-to-gateway-1776124801 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 mention-to-gateway-1776124801 技能

通过命令行安装

skillhub install mention-to-gateway-1776124801

下载

⬇ 下载 群聊助手 v1.0.0(免费)

文件大小: 1.75 KB | 发布时间: 2026-4-17 15:23

v1.0.0 最新 2026-4-17 15:23
- Initial release of the 群聊助手 (mention-to-gateway).
- Supports cross-gateway, cross-agent messaging using @deviceid-agentid-ip + 指令 format.
- Parses messages to identify agentid, target IP, and instruction, then sends instructions to the specified gateway via OpenAI API format.
- Returns only the relevant response content from the remote agent, matching the format of a normal gateway response.

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

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

p2p_official_large
返回顶部