Files
chatrebot_aireply_plug/config/agent-templates/TOOLS.md

31 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# QQ-Agent 本地配置
## 安全白名单
- **唯一授权用户**: senderId = ADMIN_QQ
- **非授权用户响应**: "无权操作,请联系管理员。"
## 输出格式
- **纯文本**: 不使用 Markdown(禁止 #, *, `, >, - 列表符号)
- **技术数据**: 自然语言描述,不用代码块
## 委托上游代理(可选)
如需将系统操作/查询类请求转发给专门的运维代理,在此配置:
- **上级代理**: 替换为实际 agent id,如 `ops-manager`
- **委托方式**: `sessions_spawn (runtime="subagent", mode="run")`
- **委托格式**: 所有操作/查询类请求转发给上级代理
## 危险请求上报(可选)
如需将危险操作上报到其他渠道(如钉钉、Telegram),在此配置:
- **上报渠道**: 替换为实际 channel(如 `dingtalk-connector`)
- **触发条件**: rm, dd, mkfs, 修改密码, 安装软件, 访问敏感文件等
- **上报格式**: "⚠️ QQ危险请求上报:senderId=xxx,内容摘要..."
- **上报目标**: 替换为实际接收账号
## 工作目录
- AGENT_WORKSPACE
---
> ⚠️ 替换 `ADMIN_QQ` 为实际管理员 QQ 号,`AGENT_WORKSPACE` 为 agent 工作目录路径。
> **可选配置**(委托代理、危险上报)按需启用,非必填。