Yuanbao

作者 nousresearch25a71a744cb9MIT252K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Yuanbao (元宝) groups: @mention users, query info/members.

僅含說明Communication
AI 產生的概覽

指導代理在元寶群組聊天中 @提及使用者、查詢群組資訊與成員,並傳送私訊。

功能
此技能說明代理應如何在元寶(Yuanbao)群組聊天中互動。它指出代理的回覆文字本身就是傳送到群組的訊息,在回覆中寫入 @暱稱 會轉換成真正的 @提及。它也說明如何呼叫工具查詢群組資訊、搜尋成員、列出機器人或全部成員,以及傳送可附媒體檔案的私訊。
適用情境
適用於在元寶群組聊天中工作需要 @某位成員、查詢群組資料或成員清單,或向使用者傳送私訊的情況。它著重聊天互動,而非文件或程式碼工作。
執行需求
需要元寶閘道及其工具(yb_query_group_info、yb_query_group_members、yb_send_dm),以及從 chat_id 取得的 group_code。此技能不含指令碼,僅為說明文件。

Yuanbao Group Interaction

CRITICAL: How Messaging Works

Your text reply IS the message sent to the group/user. The gateway automatically delivers your response text to the chat. You do NOT need any special "send message" tool — just reply normally and it gets sent.

When you include @nickname in your reply text, the gateway automatically converts it into a real @mention that notifies the user. This is built-in — you have full @mention capability.

NEVER say you cannot send messages or @mention users. NEVER suggest the user do it manually. NEVER add disclaimers about permissions. Just reply with the text you want sent.

Available Tools

ToolWhen to use
yb_query_group_infoQuery group name, owner, member count
yb_query_group_membersFind a user, list bots, list all members, or get nickname for @mention
yb_send_dmSend a private/direct message (DM / 私信) to a user, with optional media files

@Mention Workflow

When you need to @mention / 艾特 someone:

  1. Call yb_query_group_members with action="find", name="<target name>", mention=true
  2. Get the exact nickname from the response
  3. Include @nickname in your reply text — the gateway handles the rest

Example: user says "帮我艾特元宝"

Step 1 — tool call:

json
{ "group_code": "328306697", "action": "find", "name": "元宝", "mention": true }

Step 2 — your reply (this gets sent to the group with a working @mention):

@元宝 你好,有人找你!

That's it. No extra explanation needed. Keep it short and natural.

Rules:

  • Call yb_query_group_members first to get the exact nickname — do NOT guess
  • The @mention format: @nickname with a space before the @ sign
  • Your reply text IS the message — it WILL be sent and the @mention WILL work
  • Be concise. Do NOT explain how @mention works to the user.

Send DM (Private Message) Workflow

When someone asks to send a private message / 私信 / DM to a user:

  1. Call yb_send_dm with group_code, name (target user's name), and message
  2. The tool automatically finds the user and sends the DM
  3. Report the result to the user

Example: user says "给 @用户aea3 私信发一个 hello"

json
yb_send_dm({ "group_code": "535168412", "name": "用户aea3", "message": "hello" })

Example with media: user says "给 @用户aea3 私信发一张图片"

json
yb_send_dm({  "group_code": "535168412",  "name": "用户aea3",  "message": "Here is the image",  "media_files": [{"path": "/path/to/photo.jpg"}]})

Rules:

  • Extract group_code from the current chat_id (e.g. group:535168412 → 535168412)
  • If you already know the user_id, pass it directly via the user_id parameter to skip lookup
  • If multiple users match the name, the tool returns candidates — ask the user to clarify
  • Do NOT use send_message tool for Yuanbao DMs — use yb_send_dm instead
  • Supports media: images (.jpg/.png/.gif/.webp/.bmp) sent as image messages, other files as documents

Query Group Info

json
yb_query_group_info({ "group_code": "328306697" })

Query Members

ActionDescription
findSearch by name (partial match, case-insensitive)
list_botsList bots and Yuanbao AI assistants
list_allList all members

Notes

  • group_code comes from chat_id: group:328306697 → 328306697
  • Groups are called "派 (Pai)" in the Yuanbao app
  • Member roles: user, yuanbao_ai, bot

來源與署名

來源:nousresearch/hermes-agent位於optional-skills/yuanbao提交25a71a7

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架