From cf1ecfde1d6e1f9d774a64a3787696df49870a5d Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 2 Sep 2026 12:34:20 -0700 Subject: [PATCH] =?UTF-8?q?refactor(agent):=20toolsets=20=E2=80=94=20build?= =?UTF-8?q?=20TOOLSETS=20via=20=5Fts/=5Fbundle=20helpers;=20share=20=5FCOD?= =?UTF-8?q?ING=5FTOOLS=20with=20hermes-acp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- toolsets.py | 684 ++++++++++++++++++---------------------------------- 1 file changed, 231 insertions(+), 453 deletions(-) diff --git a/toolsets.py b/toolsets.py index fd033954c0..815045adfd 100644 --- a/toolsets.py +++ b/toolsets.py @@ -62,497 +62,275 @@ _HERMES_WEBHOOK_SAFE_TOOLS = [ ] -# Core toolset definitions -# These can include individual tools or reference other toolsets +def _ts(description, tools=(), includes=(), **extra): + """One TOOLSETS entry (fresh lists per entry; extra keys such as posture pass through).""" + return {"description": description, "tools": list(tools), "includes": list(includes), **extra} + + +def _bundle(description, extras=()): + """A `hermes-*` platform bundle: the shared core tools plus optional platform extras.""" + return _ts(description, _HERMES_CORE_TOOLS + list(extras)) + + +_CODING_TOOLS = [ + "web_search", "web_extract", "terminal", "process_manage", "read_file", + "write_file", "patch", "search_files", "vision_analyze", "skills_list", + "skill_view", "skill_manage", "browser_navigate", "browser_snapshot", + "browser_click", "browser_type", "browser_scroll", "browser_back", "browser_press", + "browser_get_images", "browser_vision", "browser_console", "browser_cdp", + "browser_dialog", "browser_exec", "todo_list", "memory", "session_search", + "clarify", "execute_code", "delegate_task", +] + +# Core toolset definitions: individual tools or references to other toolsets. TOOLSETS = { # Basic toolsets - individual tool categories - "web": { - "description": "Web research and content extraction tools", - "tools": ["web_search", "web_extract"], - "includes": [] - }, - - "search": { - "description": "Web search only (no content extraction/scraping)", - "tools": ["web_search"], - "includes": [] - }, - - "x_search": { - "description": ( - "Search X (Twitter) posts and threads via xAI's built-in " - "x_search Responses tool. Read-only public X discovery; use the " - "xurl skill for authenticated X API reads and account actions. " - "Available when xAI credentials are configured (SuperGrok OAuth " - "or XAI_API_KEY). Off by default; enable in `hermes tools` → " - "X (Twitter) Search." - ), - "tools": ["x_search"], - "includes": [] - }, - - "vision": { - "description": "Image analysis and vision tools", - "tools": ["vision_analyze"], - "includes": [] - }, - - "video": { - "description": "Video analysis and understanding tools (opt-in, not in default toolset)", - "tools": ["video_analyze"], - "includes": [] - }, - - "image_gen": { - "description": "Creative generation tools (images)", - "tools": ["image_generate"], - "includes": [] - }, - - "video_gen": { - "description": ( - "Video generation tools. Single ``video_generate`` tool covers " - "text-to-video (prompt only) and image-to-video (prompt + " - "image_url), plus reference-to-video. Provider-specific edit/" - "extend workflows may appear as separate tools. Configure via " - "``hermes tools`` → Video Generation." - ), - "tools": ["video_generate", "xai_video_edit", "xai_video_extend"], - "includes": [] - }, - - "computer_use": { - "description": ( - "Background desktop control via cua-driver (macOS/Windows/Linux) — " - "screenshots, mouse, keyboard, scroll, drag. Does NOT steal the " - "user's cursor or keyboard focus. Works with any tool-capable model." - ), - "tools": ["computer_use"], - "includes": [] - }, - - "terminal": { - "description": "Terminal/command execution and process management tools", - "tools": ["terminal", "process_manage"], - "includes": [] - }, - - "skills": { - "description": "Access, create, edit, and manage skill documents with specialized instructions and knowledge", - "tools": ["skills_list", "skill_view", "skill_manage"], - "includes": [] - }, - - "browser": { - "description": "Browser automation for web interaction (navigate, click, type, scroll, iframes, hold-click) with web search for finding URLs", - "tools": [ - "browser_navigate", "browser_snapshot", "browser_click", - "browser_type", "browser_scroll", "browser_back", - "browser_press", "browser_get_images", - "browser_vision", "browser_console", "browser_cdp", - "browser_dialog", "browser_exec", "web_search" + "web": _ts("Web research and content extraction tools", ["web_search", "web_extract"]), + "search": _ts("Web search only (no content extraction/scraping)", ["web_search"]), + "x_search": _ts( + "Search X (Twitter) posts and threads via xAI's built-in x_search Responses " + "tool. Read-only public X discovery; use the xurl skill for authenticated X " + "API reads and account actions. Available when xAI credentials are configured " + "(SuperGrok OAuth or XAI_API_KEY). Off by default; enable in `hermes tools` → " + "X (Twitter) Search.", + ["x_search"], + ), + "vision": _ts("Image analysis and vision tools", ["vision_analyze"]), + "video": _ts( + "Video analysis and understanding tools (opt-in, not in default toolset)", + ["video_analyze"], + ), + "image_gen": _ts("Creative generation tools (images)", ["image_generate"]), + "video_gen": _ts( + "Video generation tools. Single ``video_generate`` tool covers text-to-video " + "(prompt only) and image-to-video (prompt + image_url), plus " + "reference-to-video. Provider-specific edit/extend workflows may appear as " + "separate tools. Configure via ``hermes tools`` → Video Generation.", + ["video_generate", "xai_video_edit", "xai_video_extend"], + ), + "computer_use": _ts( + "Background desktop control via cua-driver (macOS/Windows/Linux) — " + "screenshots, mouse, keyboard, scroll, drag. Does NOT steal the user's cursor " + "or keyboard focus. Works with any tool-capable model.", + ["computer_use"], + ), + "terminal": _ts( + "Terminal/command execution and process management tools", + ["terminal", "process_manage"], + ), + "skills": _ts( + "Access, create, edit, and manage skill documents with specialized " + "instructions and knowledge", + ["skills_list", "skill_view", "skill_manage"], + ), + "browser": _ts( + "Browser automation for web interaction (navigate, click, type, scroll, " + "iframes, hold-click) with web search for finding URLs", + [ + "browser_navigate", "browser_snapshot", "browser_click", "browser_type", + "browser_scroll", "browser_back", "browser_press", "browser_get_images", + "browser_vision", "browser_console", "browser_cdp", "browser_dialog", + "browser_exec", "web_search", ], - "includes": [] - }, - - "cronjob": { - "description": "Cronjob management tool - create, list, update, pause, resume, remove, and trigger scheduled tasks", - "tools": ["cronjob_manage"], - "includes": [] - }, - - - "file": { - "description": "File manipulation tools: read, write, patch (with fuzzy matching), and search (content + files)", - "tools": ["read_file", "write_file", "patch", "search_files"], - "includes": [] - }, - - "tts": { - "description": "Text-to-speech: convert text to audio with Edge TTS (free), ElevenLabs, OpenAI, or xAI", - "tools": ["text_to_speech"], - "includes": [] - }, - - "todo": { - "description": "Task planning and tracking for multi-step work", - "tools": ["todo_list"], - "includes": [] - }, - - "memory": { - "description": "Persistent memory across sessions (personal notes + user profile)", - "tools": ["memory"], - "includes": [] - }, - - "context_engine": { - "description": "Runtime tools exposed by the active context engine", - "tools": [], - "includes": [] - }, - - "session_search": { - "description": "Search and recall past conversations with summarization", - "tools": ["session_search"], - "includes": [] - }, - - "project": { - "description": "Desktop Projects — create/switch named workspaces (GUI sessions only)", - "tools": ["desktop_project"], - "includes": [] - }, - - "bot_room": { - "description": "Verified text-only Group Chat turn capabilities", - "tools": [], - "includes": [], - }, + ), + "cronjob": _ts( + "Cronjob management tool - create, list, update, pause, resume, remove, and " + "trigger scheduled tasks", + ["cronjob_manage"], + ), + "file": _ts( + "File manipulation tools: read, write, patch (with fuzzy matching), and " + "search (content + files)", + ["read_file", "write_file", "patch", "search_files"], + ), + "tts": _ts( + "Text-to-speech: convert text to audio with Edge TTS (free), ElevenLabs, OpenAI, or xAI", + ["text_to_speech"], + ), + "todo": _ts("Task planning and tracking for multi-step work", ["todo_list"]), + "memory": _ts("Persistent memory across sessions (personal notes + user profile)", ["memory"]), + "context_engine": _ts("Runtime tools exposed by the active context engine"), + "session_search": _ts("Search and recall past conversations with summarization", ["session_search"]), + "project": _ts( + "Desktop Projects — create/switch named workspaces (GUI sessions only)", + ["desktop_project"], + ), + "bot_room": _ts("Verified text-only Group Chat turn capabilities"), # GUI-renderer affordances, enabled per desktop-sourced SESSION by the GUI # gateway (tui_gateway/server.py::_load_enabled_toolsets) — never by a # process env var, which is blind to a desktop client on a remote backend. - "desktop_ui": { - "description": "Desktop GUI affordances — in-app terminal/browser panes, pane focus, reactions (GUI sessions only)", - "tools": [ - "read_terminal", "close_terminal", - "desktop_preview", "drive_preview", "annotate_preview", - "read_window_below", - "focus_pane", "react_to_message", + "desktop_ui": _ts( + "Desktop GUI affordances — in-app terminal/browser panes, pane focus, " + "reactions (GUI sessions only)", + [ + "read_terminal", "close_terminal", "desktop_preview", "drive_preview", + "annotate_preview", "read_window_below", "focus_pane", "react_to_message", "setup_mcp", "gui_tour", "show_tip", ], - "includes": [] - }, - - "clarify": { - "description": "Ask the user clarifying questions (multiple-choice or open-ended)", - "tools": ["clarify"], - "includes": [] - }, - - "code_execution": { - "description": "Run Python scripts that call tools programmatically (reduces LLM round trips)", - "tools": ["execute_code"], - "includes": [] - }, - - "delegation": { - "description": "Spawn subagents with isolated context for complex subtasks", - "tools": ["delegate_task"], - "includes": [] - }, - - - "homeassistant": { - "description": "Home Assistant smart home control and monitoring", - "tools": ["ha_list_entities", "ha_get_state", "ha_list_services", "ha_call_service"], - "includes": [] - }, - - "kanban": { - "description": ( - "Kanban multi-agent coordination — only active when the agent " - "is spawned by the kanban dispatcher (HERMES_KANBAN_TASK env " - "set). The dispatcher runs inside the gateway by default; see " - "`kanban.dispatch_in_gateway` in config.yaml. Lets workers mark " - "tasks done with structured handoffs, enter first-class review " - "(request_review — not a block), return review changes, block for human input, " - "heartbeat during long ops, comment on threads, attach files, and " - "(for orchestrators) list, unblock, and fan out tasks." - ), - "tools": [ + ), + "clarify": _ts("Ask the user clarifying questions (multiple-choice or open-ended)", ["clarify"]), + "code_execution": _ts( + "Run Python scripts that call tools programmatically (reduces LLM round trips)", + ["execute_code"], + ), + "delegation": _ts("Spawn subagents with isolated context for complex subtasks", ["delegate_task"]), + "homeassistant": _ts( + "Home Assistant smart home control and monitoring", + ["ha_list_entities", "ha_get_state", "ha_list_services", "ha_call_service"], + ), + "kanban": _ts( + "Kanban multi-agent coordination — only active when the agent is spawned by " + "the kanban dispatcher (HERMES_KANBAN_TASK env set). The dispatcher runs " + "inside the gateway by default; see `kanban.dispatch_in_gateway` in " + "config.yaml. Lets workers mark tasks done with structured handoffs, enter " + "first-class review (request_review — not a block), return review changes, " + "block for human input, heartbeat during long ops, comment on threads, attach " + "files, and (for orchestrators) list, unblock, and fan out tasks.", + [ "kanban_show", "kanban_list", "kanban_complete", "kanban_block", - "kanban_request_review", "kanban_request_changes", - "kanban_heartbeat", "kanban_comment", - "kanban_create", "kanban_link", - "kanban_unblock", + "kanban_request_review", "kanban_request_changes", "kanban_heartbeat", + "kanban_comment", "kanban_create", "kanban_link", "kanban_unblock", "kanban_attach", "kanban_attach_url", "kanban_attachments", ], - "includes": [], - }, - - "discord": { - "description": "Discord read and participate tools (fetch messages, search members, create threads)", - "tools": ["discord"], - "includes": [], - }, - - "discord_admin": { - "description": "Discord server management (list channels/roles, pin messages, assign roles)", - "tools": ["discord_admin"], - "includes": [], - }, - - "yuanbao": { - "description": "Yuanbao platform tools - group info, member queries, DM, stickers", - "tools": [ - "yb_query_group_info", - "yb_query_group_members", - "yb_send_dm", - "yb_search_sticker", + ), + "discord": _ts( + "Discord read and participate tools (fetch messages, search members, create threads)", + ["discord"], + ), + "discord_admin": _ts( + "Discord server management (list channels/roles, pin messages, assign roles)", + ["discord_admin"], + ), + "yuanbao": _ts( + "Yuanbao platform tools - group info, member queries, DM, stickers", + [ + "yb_query_group_info", "yb_query_group_members", "yb_send_dm", "yb_search_sticker", "yb_send_sticker", ], - "includes": [] - }, - - "feishu_doc": { - "description": "Read Feishu/Lark document content", - "tools": ["feishu_doc_read"], - "includes": [] - }, - - "feishu_drive": { - "description": "Feishu/Lark document comment operations (list, reply, add)", - "tools": [ + ), + "feishu_doc": _ts("Read Feishu/Lark document content", ["feishu_doc_read"]), + "feishu_drive": _ts( + "Feishu/Lark document comment operations (list, reply, add)", + [ "feishu_drive_list_comments", "feishu_drive_list_comment_replies", "feishu_drive_reply_comment", "feishu_drive_add_comment", ], - "includes": [] - }, - - "spotify": { - "description": "Native Spotify playback, search, playlist, album, and library tools", - "tools": [ + ), + "spotify": _ts( + "Native Spotify playback, search, playlist, album, and library tools", + [ "spotify_playback", "spotify_devices", "spotify_queue", "spotify_search", "spotify_playlists", "spotify_albums", "spotify_library", ], - "includes": [] - }, - + ), # Scenario-specific toolsets - - "debugging": { - "description": "Debugging and troubleshooting toolkit", - "tools": ["terminal", "process_manage"], - "includes": ["web", "file"] # For searching error messages and solutions, and file operations - }, - - "safe": { - "description": "Safe toolkit without terminal access", - "tools": [], - "includes": ["web", "vision", "image_gen"] - }, + "debugging": _ts( + "Debugging and troubleshooting toolkit", + ["terminal", "process_manage"], + includes=["web", "file"], + ), + "safe": _ts("Safe toolkit without terminal access", [], includes=["web", "vision", "image_gen"]), # Coding posture, auto-selected in a code workspace (agent/coding_context.py). # `desktop_ui` is folded in separately by the GUI gateway for desktop sessions. - "coding": { - "description": "Coding-focused toolset: files, terminal, search, web docs, skills, todo, delegate, vision, browser", - "tools": [ - "web_search", "web_extract", - "terminal", "process_manage", - "read_file", "write_file", "patch", "search_files", - "vision_analyze", - "skills_list", "skill_view", "skill_manage", - "browser_navigate", "browser_snapshot", "browser_click", - "browser_type", "browser_scroll", "browser_back", - "browser_press", "browser_get_images", - "browser_vision", "browser_console", "browser_cdp", "browser_dialog", - "browser_exec", - "todo_list", "memory", - "session_search", "clarify", - "execute_code", "delegate_task", - ], - "includes": [], - # Per-session posture; never auto-recovered into platform tool config. - "posture": True, - }, + # posture=True: per-session posture, never auto-recovered into platform tool + # config (see the non-configurable-toolset recovery loop in hermes_cli/tools_config.py). + "coding": _ts( + "Coding-focused toolset: files, terminal, search, web docs, skills, todo, " + "delegate, vision, browser", + _CODING_TOOLS, + posture=True, + ), # Full Hermes toolsets (CLI + messaging platforms). All share the core tools; - # there is deliberately no agent-callable send_message tool. - - "hermes-acp": { - "description": "Editor integration (VS Code, Zed, JetBrains) — coding-focused tools without messaging, audio, or clarify UI", - "tools": [ - "web_search", "web_extract", - "terminal", "process_manage", - "read_file", "write_file", "patch", "search_files", - "vision_analyze", - "skills_list", "skill_view", "skill_manage", - "browser_navigate", "browser_snapshot", "browser_click", - "browser_type", "browser_scroll", "browser_back", - "browser_press", "browser_get_images", - "browser_vision", "browser_console", "browser_cdp", "browser_dialog", - "browser_exec", - "todo_list", "memory", - "session_search", - "execute_code", "delegate_task", - ], - "includes": [] - }, - - "hermes-api-server": { - "description": "OpenAI-compatible API server — full agent tools accessible via HTTP (no interactive UI tools like clarify or send_message)", - "tools": [ - "web_search", "web_extract", - "terminal", "process_manage", - "read_file", "write_file", "patch", "search_files", - "vision_analyze", "image_generate", - "skills_list", "skill_view", "skill_manage", - "browser_navigate", "browser_snapshot", "browser_click", - "browser_type", "browser_scroll", "browser_back", - "browser_press", "browser_get_images", - "browser_vision", "browser_console", "browser_cdp", "browser_dialog", - "browser_exec", - "todo_list", "memory", - "session_search", - "execute_code", "delegate_task", - "cronjob_manage", + # there is deliberately no agent-callable send_message tool. hermes-acp is the + # coding posture minus the interactive clarify UI. + "hermes-acp": _ts( + "Editor integration (VS Code, Zed, JetBrains) — coding-focused tools without " + "messaging, audio, or clarify UI", + [t for t in _CODING_TOOLS if t != "clarify"], + ), + "hermes-api-server": _ts( + "OpenAI-compatible API server — full agent tools accessible via HTTP (no " + "interactive UI tools like clarify or send_message)", + [ + "web_search", "web_extract", "terminal", "process_manage", "read_file", + "write_file", "patch", "search_files", "vision_analyze", "image_generate", + "skills_list", "skill_view", "skill_manage", "browser_navigate", + "browser_snapshot", "browser_click", "browser_type", "browser_scroll", + "browser_back", "browser_press", "browser_get_images", "browser_vision", + "browser_console", "browser_cdp", "browser_dialog", "browser_exec", "todo_list", + "memory", "session_search", "execute_code", "delegate_task", "cronjob_manage", "ha_list_entities", "ha_get_state", "ha_list_services", "ha_call_service", ], - "includes": [] - }, + ), + "hermes-cli": _bundle("Full interactive CLI toolset - all default tools plus cronjob management"), - "hermes-cli": { - "description": "Full interactive CLI toolset - all default tools plus cronjob management", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-cron": { - # Mirrors hermes-cli; `hermes tools` platform config filters it down and - # _get_platform_tools() drops _DEFAULT_OFF_TOOLSETS unless user-enabled. - "description": "Default cron toolset - same core tools as hermes-cli; gated by `hermes tools`", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-telegram": { - "description": "Telegram bot toolset - full access for personal use (terminal has safety checks)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-discord": { - "description": "Discord bot toolset - full access (terminal has safety checks via dangerous command approval)", - "tools": _HERMES_CORE_TOOLS + [ - "discord", - "discord_admin", - ], - "includes": [] - }, - - "hermes-whatsapp": { - "description": "WhatsApp bot toolset - similar to Telegram (personal messaging, more trusted)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-slack": { - "description": "Slack bot toolset - full access for workspace use (terminal has safety checks)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-signal": { - "description": "Signal bot toolset - encrypted messaging platform (full access)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-bluebubbles": { - "description": "BlueBubbles iMessage bot toolset - Apple iMessage via local BlueBubbles server", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-homeassistant": { - "description": "Home Assistant bot toolset - smart home event monitoring and control", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-email": { - "description": "Email bot toolset - interact with Hermes via email (IMAP/SMTP)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-mattermost": { - "description": "Mattermost bot toolset - self-hosted team messaging (full access)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-matrix": { - "description": "Matrix bot toolset - decentralized encrypted messaging (full access)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-dingtalk": { - "description": "DingTalk bot toolset - enterprise messaging platform (full access)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-feishu": { - "description": "Feishu/Lark bot toolset - enterprise messaging via Feishu/Lark (full access)", - "tools": _HERMES_CORE_TOOLS + [ - "feishu_doc_read", - "feishu_drive_list_comments", - "feishu_drive_list_comment_replies", - "feishu_drive_reply_comment", + # Mirrors hermes-cli; `hermes tools` platform config filters it down and + # _get_platform_tools() drops _DEFAULT_OFF_TOOLSETS unless user-enabled. + "hermes-cron": _bundle("Default cron toolset - same core tools as hermes-cli; gated by `hermes tools`"), + "hermes-telegram": _bundle( + "Telegram bot toolset - full access for personal use (terminal has safety checks)" + ), + "hermes-discord": _bundle( + "Discord bot toolset - full access (terminal has safety checks via dangerous " + "command approval)", + ["discord", "discord_admin"], + ), + "hermes-whatsapp": _bundle( + "WhatsApp bot toolset - similar to Telegram (personal messaging, more trusted)" + ), + "hermes-slack": _bundle("Slack bot toolset - full access for workspace use (terminal has safety checks)"), + "hermes-signal": _bundle("Signal bot toolset - encrypted messaging platform (full access)"), + "hermes-bluebubbles": _bundle( + "BlueBubbles iMessage bot toolset - Apple iMessage via local BlueBubbles server" + ), + "hermes-homeassistant": _bundle("Home Assistant bot toolset - smart home event monitoring and control"), + "hermes-email": _bundle("Email bot toolset - interact with Hermes via email (IMAP/SMTP)"), + "hermes-mattermost": _bundle("Mattermost bot toolset - self-hosted team messaging (full access)"), + "hermes-matrix": _bundle("Matrix bot toolset - decentralized encrypted messaging (full access)"), + "hermes-dingtalk": _bundle("DingTalk bot toolset - enterprise messaging platform (full access)"), + "hermes-feishu": _bundle( + "Feishu/Lark bot toolset - enterprise messaging via Feishu/Lark (full access)", + [ + "feishu_doc_read", "feishu_drive_list_comments", + "feishu_drive_list_comment_replies", "feishu_drive_reply_comment", "feishu_drive_add_comment", ], - "includes": [] - }, - - "hermes-weixin": { - "description": "Weixin bot toolset - personal WeChat messaging via iLink (full access)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-qqbot": { - "description": "QQBot toolset - QQ messaging via Official Bot API v2 (full access)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-wecom": { - "description": "WeCom bot toolset - enterprise WeChat messaging (full access)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-wecom-callback": { - "description": "WeCom callback toolset - enterprise self-built app messaging (full access)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - + ), + "hermes-weixin": _bundle("Weixin bot toolset - personal WeChat messaging via iLink (full access)"), + "hermes-qqbot": _bundle("QQBot toolset - QQ messaging via Official Bot API v2 (full access)"), + "hermes-wecom": _bundle("WeCom bot toolset - enterprise WeChat messaging (full access)"), + "hermes-wecom-callback": _bundle( + "WeCom callback toolset - enterprise self-built app messaging (full access)" + ), "hermes-yuanbao": { "description": "Yuanbao Bot 元宝消息平台工具集 - 群信息、成员查询、私聊、贴纸表情", "tools": _HERMES_CORE_TOOLS + [ - "yb_query_group_info", - "yb_query_group_members", - "yb_send_dm", - "yb_search_sticker", - "yb_send_sticker", + "yb_query_group_info", "yb_query_group_members", "yb_send_dm", + "yb_search_sticker", "yb_send_sticker", ], "module": "tools.yuanbao_tools", - "includes": [] + "includes": [], }, - - "hermes-sms": { - "description": "SMS bot toolset - interact with Hermes via SMS (Twilio)", - "tools": _HERMES_CORE_TOOLS, - "includes": [] - }, - - "hermes-webhook": { - "description": "Webhook toolset - receive and process external webhook events", - "tools": _HERMES_WEBHOOK_SAFE_TOOLS, - "includes": [] - }, - - "hermes-gateway": { - "description": "Gateway toolset - union of all messaging platform tools", - "tools": [], - "includes": ["hermes-telegram", "hermes-discord", "hermes-whatsapp", "hermes-slack", "hermes-signal", "hermes-bluebubbles", "hermes-homeassistant", "hermes-email", "hermes-sms", "hermes-mattermost", "hermes-matrix", "hermes-dingtalk", "hermes-feishu", "hermes-wecom", "hermes-wecom-callback", "hermes-weixin", "hermes-qqbot", "hermes-webhook", "hermes-yuanbao"] - } + "hermes-sms": _bundle("SMS bot toolset - interact with Hermes via SMS (Twilio)"), + "hermes-webhook": _ts( + "Webhook toolset - receive and process external webhook events", + _HERMES_WEBHOOK_SAFE_TOOLS, + ), + "hermes-gateway": _ts( + "Gateway toolset - union of all messaging platform tools", + [], + includes=[ + "hermes-telegram", "hermes-discord", "hermes-whatsapp", "hermes-slack", + "hermes-signal", "hermes-bluebubbles", "hermes-homeassistant", "hermes-email", + "hermes-sms", "hermes-mattermost", "hermes-matrix", "hermes-dingtalk", + "hermes-feishu", "hermes-wecom", "hermes-wecom-callback", "hermes-weixin", + "hermes-qqbot", "hermes-webhook", "hermes-yuanbao", + ], + ), }