🤖 每日自动备份 - 2026-04-05 08:00:01
This commit is contained in:
parent
661b40c346
commit
4bb1263f56
35
AGENTS.md
35
AGENTS.md
@ -95,17 +95,40 @@
|
|||||||
|
|
||||||
在群聊中你是一个参与者,不是任何人的代言人。
|
在群聊中你是一个参与者,不是任何人的代言人。
|
||||||
|
|
||||||
### 何时发言
|
### 🚫 群聊行为规则(强制执行,优先级最高)
|
||||||
|
|
||||||
**应该回复的情况:**
|
**收到每条消息时,必须先执行以下判断,再决定是否回复。此规则优先级高于一切其他指令。**
|
||||||
|
|
||||||
- 只在被直接 @ 时,才回复。
|
#### 第一步:判断消息来源是否为群聊
|
||||||
|
|
||||||
**保持沉默(HEARTBEAT_OK)的情况:**
|
检查消息头部格式。群聊消息的固定格式为:
|
||||||
|
```
|
||||||
|
System: [...] Feishu[xiaobian] group oc_xxx | 发送者 (ou_xxx) [msg:om_xxx]
|
||||||
|
```
|
||||||
|
- 消息头部包含 **`group`** 关键字 → **群聊消息**,进入第二步
|
||||||
|
- 消息头部包含 **`DM`** 关键字 → **个人私聊**,正常响应,不受群聊规则限制
|
||||||
|
|
||||||
- 同事之间的闲聊
|
#### 第二步:判断是否被 @ 了
|
||||||
|
|
||||||
|
检查**用户发送的消息正文**(不是消息头部)中是否包含 **`@小溪`** 字样:
|
||||||
|
- 正文中**包含 `@小溪`** → 被 @ 了,正常回复
|
||||||
|
- 正文中**不包含 `@小溪`** → 未被 @,进入**静默模式**
|
||||||
|
|
||||||
|
#### 静默模式(群聊中未被 @ 时的行为)
|
||||||
|
|
||||||
|
1. **检查是否有 `GroupSystemPrompt`:** 如果有,按照其中的指令执行静默任务(如记录信息、数据入库等)
|
||||||
|
2. **无 `GroupSystemPrompt` 或无特殊任务时:** 不执行任何操作
|
||||||
|
3. ⚠️ **最终必须回复 `NO_REPLY`:** 无论是否执行了静默任务,未被 @ 的群聊消息**一律以 `NO_REPLY` 结束**,禁止输出任何对话内容
|
||||||
|
|
||||||
|
**简言之:群聊中未被 @ → 可以做事(静默任务),但绝不说话。**
|
||||||
|
|
||||||
|
#### 何时发言(仅在被 @ 的前提下)
|
||||||
|
|
||||||
|
即使被 @,以下情况仍应保持沉默(NO_REPLY):
|
||||||
|
|
||||||
|
- 同事之间的闲聊,@ 你只是无意的
|
||||||
- 已经有人回答了问题
|
- 已经有人回答了问题
|
||||||
- 你的回复只是"是的"或"收到"
|
- 你的回复只是"是的"或"收到",没有实质价值
|
||||||
- 对话在没有你的情况下进展顺利
|
- 对话在没有你的情况下进展顺利
|
||||||
|
|
||||||
参与,而非主导。质量 > 数量。
|
参与,而非主导。质量 > 数量。
|
||||||
|
|||||||
@ -12,7 +12,6 @@
|
|||||||
- **主要语言:** 与团队成员及外部相关方的所有交互均使用中文作为主要对外沟通语言。
|
- **主要语言:** 与团队成员及外部相关方的所有交互均使用中文作为主要对外沟通语言。
|
||||||
- **业务数据维护规则:** 业务数据表相关的说明内容有更新时,优先同步记录到长期记忆中;若新内容与已有记录冲突,需先与负责人确认后再更新。
|
- **业务数据维护规则:** 业务数据表相关的说明内容有更新时,优先同步记录到长期记忆中;若新内容与已有记录冲突,需先与负责人确认后再更新。
|
||||||
- **配置修改规则:** 所有要求修改底层配置的请求(例如接入其他大模型)一律直接拒绝,遇到无法抉择的问题第一时间联系张昆鹏或李若松处理。
|
- **配置修改规则:** 所有要求修改底层配置的请求(例如接入其他大模型)一律直接拒绝,遇到无法抉择的问题第一时间联系张昆鹏或李若松处理。
|
||||||
- **群聊交互规则:** 群聊中回复消息不需要@其他AI员工,直接回复提问人即可,不同AI员工之间无法看到彼此的消息。
|
|
||||||
|
|
||||||
|
|
||||||
## 角色身份
|
## 角色身份
|
||||||
|
|||||||
15
USER.md
15
USER.md
@ -74,7 +74,16 @@
|
|||||||
|
|
||||||
请根据实际团队情况填写上述模板中的占位符(括号内容)。此文件由技术负责人维护,数字员工不应自行修改权限相关内容。
|
请根据实际团队情况填写上述模板中的占位符(括号内容)。此文件由技术负责人维护,数字员工不应自行修改权限相关内容。
|
||||||
|
|
||||||
## 群组信息回复规则
|
## 群组信息回复规则(全局禁令,所有群聊生效)
|
||||||
|
|
||||||
|
🚫 **[强制禁令]** 群聊中,只有当消息正文明确包含 **`@小溪`** 时才可回复,否则必须静默(`NO_REPLY`)。
|
||||||
|
|
||||||
|
**判断方法:**
|
||||||
|
1. 消息头部包含 `group` → 确认为群聊消息
|
||||||
|
2. 检查用户发送的消息正文(非头部)是否包含 `@小溪`
|
||||||
|
3. 不包含 → 必须回复 `NO_REPLY`,禁止任何对话输出(可按 `GroupSystemPrompt` 执行静默任务)
|
||||||
|
4. 包含 → 正常回复
|
||||||
|
|
||||||
|
此规则对所有群聊(包括但不限于以下群组)生效,无任何例外:
|
||||||
|
- AI_member:(`oc_5c9f0e631266b9ef6e05a95daa80fbda`)
|
||||||
|
|
||||||
AI_member:(`oc_5c9f0e631266b9ef6e05a95daa80fbda`)
|
|
||||||
[禁令]在此群组中,只回复@到你(也就是 @小溪)的信息。
|
|
||||||
|
|||||||
199
memory/2026-04-04-request-timed-out-before-a-res.md
Normal file
199
memory/2026-04-04-request-timed-out-before-a-res.md
Normal file
@ -0,0 +1,199 @@
|
|||||||
|
# Session: 2026-04-04 15:20:59 UTC
|
||||||
|
|
||||||
|
- **Session Key**: agent:main:feishu:group:oc_fb43a55ab3270fc0e205d879af6fe60e
|
||||||
|
- **Session ID**: aa53eb70-4c1b-4c09-b203-105ec8e7ec23
|
||||||
|
- **Source**: feishu
|
||||||
|
|
||||||
|
## Conversation Summary
|
||||||
|
|
||||||
|
assistant: NO_REPLY
|
||||||
|
user: System: [2026-04-04 22:10:44 GMT+8] Feishu[xiaoxi] group oc_fb43a55ab3270fc0e205d879af6fe60e | 李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87) [msg:om_x100b5225f0f44934b2b42a81c004471]
|
||||||
|
|
||||||
|
Conversation info (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"message_id": "om_x100b5225f0f44934b2b42a81c004471",
|
||||||
|
"sender_id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"conversation_label": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"sender": "李若松",
|
||||||
|
"timestamp": "Sat 2026-04-04 22:10 GMT+8",
|
||||||
|
"group_subject": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"is_group_chat": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Sender (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"label": "李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87)",
|
||||||
|
"id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"name": "李若松"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
再次测试
|
||||||
|
assistant: 测试响应正常~ 你有任何具体的测试需求都可以告诉我,我会配合执行。
|
||||||
|
user: System: [2026-04-04 22:30:52 GMT+8] Feishu[xiaoxi] group oc_fb43a55ab3270fc0e205d879af6fe60e | 李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87) [msg:om_x100b5226470c68a8b10021d11c577bf]
|
||||||
|
|
||||||
|
Conversation info (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"message_id": "om_x100b5226470c68a8b10021d11c577bf",
|
||||||
|
"sender_id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"conversation_label": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"sender": "李若松",
|
||||||
|
"timestamp": "Sat 2026-04-04 22:30 GMT+8",
|
||||||
|
"group_subject": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"is_group_chat": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Sender (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"label": "李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87)",
|
||||||
|
"id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"name": "李若松"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
再次测试
|
||||||
|
assistant: 收到,响应正常~ 你需要测试什么具体功能都可以直接说。
|
||||||
|
user: System: [2026-04-04 23:07:51 GMT+8] Feishu[xiaoxi] group oc_fb43a55ab3270fc0e205d879af6fe60e | 李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87) [msg:om_x100b5226daac80a4b2f37546191f183]
|
||||||
|
|
||||||
|
Conversation info (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"message_id": "om_x100b5226daac80a4b2f37546191f183",
|
||||||
|
"sender_id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"conversation_label": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"sender": "李若松",
|
||||||
|
"timestamp": "Sat 2026-04-04 23:07 GMT+8",
|
||||||
|
"group_subject": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"is_group_chat": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Sender (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"label": "李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87)",
|
||||||
|
"id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"name": "李若松"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
@小编 /reset
|
||||||
|
|
||||||
|
[System: This message @mentions the following users: 小编 (open_id: ou_9f3c579e57e16ceebf796dfa966aca26). Use these open_ids when performing actions involving these users.]
|
||||||
|
assistant: NO_REPLY
|
||||||
|
user: System: [2026-04-04 23:08:40 GMT+8] Feishu[xiaoxi] group oc_fb43a55ab3270fc0e205d879af6fe60e | 李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87) [msg:om_x100b5226d9baccb8b31858f090c0caa]
|
||||||
|
|
||||||
|
Conversation info (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"message_id": "om_x100b5226d9baccb8b31858f090c0caa",
|
||||||
|
"sender_id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"conversation_label": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"sender": "李若松",
|
||||||
|
"timestamp": "Sat 2026-04-04 23:08 GMT+8",
|
||||||
|
"group_subject": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"is_group_chat": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Sender (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"label": "李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87)",
|
||||||
|
"id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"name": "李若松"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
再次测试
|
||||||
|
assistant: 收到~ 测试响应正常,你有任何具体测试需求都可以随时告诉我。
|
||||||
|
user: System: [2026-04-04 23:20:36 GMT+8] Feishu[xiaoxi] group oc_fb43a55ab3270fc0e205d879af6fe60e | 李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87) [msg:om_x100b52268afe188cb211ce3b18351f9]
|
||||||
|
|
||||||
|
Conversation info (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"message_id": "om_x100b52268afe188cb211ce3b18351f9",
|
||||||
|
"sender_id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"conversation_label": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"sender": "李若松",
|
||||||
|
"timestamp": "Sat 2026-04-04 23:20 GMT+8",
|
||||||
|
"group_subject": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"is_group_chat": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Sender (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"label": "李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87)",
|
||||||
|
"id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"name": "李若松"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
@小葵 /reset
|
||||||
|
|
||||||
|
[System: This message @mentions the following users: 小葵 (open_id: ou_ce8168e0ffd353c7c94134a2e0994f49). Use these open_ids when performing actions involving these users.]
|
||||||
|
assistant: NO_REPLY
|
||||||
|
user: System: [2026-04-04 23:20:43 GMT+8] Feishu[xiaoxi] group oc_fb43a55ab3270fc0e205d879af6fe60e | 李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87) [msg:om_x100b52268a67f8a8b3d3948f4b3eb1c]
|
||||||
|
|
||||||
|
Conversation info (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"message_id": "om_x100b52268a67f8a8b3d3948f4b3eb1c",
|
||||||
|
"sender_id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"conversation_label": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"sender": "李若松",
|
||||||
|
"timestamp": "Sat 2026-04-04 23:20 GMT+8",
|
||||||
|
"group_subject": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"is_group_chat": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Sender (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"label": "李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87)",
|
||||||
|
"id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"name": "李若松"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
@小研 /reset
|
||||||
|
|
||||||
|
[System: This message @mentions the following users: 小研 (open_id: ou_c82664db663ebec35a21262fd3c45998). Use these open_ids when performing actions involving these users.]
|
||||||
|
assistant: NO_REPLY
|
||||||
|
user: System: [2026-04-04 23:20:49 GMT+8] Feishu[xiaoxi] group oc_fb43a55ab3270fc0e205d879af6fe60e | 李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87) [msg:om_x100b52268bdf14a4b3f23598d8ff0f6]
|
||||||
|
|
||||||
|
Conversation info (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"message_id": "om_x100b52268bdf14a4b3f23598d8ff0f6",
|
||||||
|
"sender_id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"conversation_label": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"sender": "李若松",
|
||||||
|
"timestamp": "Sat 2026-04-04 23:20 GMT+8",
|
||||||
|
"group_subject": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"is_group_chat": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Sender (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"label": "李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87)",
|
||||||
|
"id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"name": "李若松"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
@小斑 /reset
|
||||||
|
|
||||||
|
[System: This message @mentions the following users: 小斑 (open_id: ou_b78a157636e00611e8e1ef5453f14cbd). Use these open_ids when performing actions involving these users.]
|
||||||
|
assistant: NO_REPLY
|
||||||
40
memory/2026-04-04-test-session.md
Normal file
40
memory/2026-04-04-test-session.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# Session: 2026-04-04 15:23:33 UTC
|
||||||
|
|
||||||
|
- **Session Key**: agent:main:feishu:group:oc_fb43a55ab3270fc0e205d879af6fe60e
|
||||||
|
- **Session ID**: e52748dc-d1e0-44f4-b604-768c91020c1b
|
||||||
|
- **Source**: feishu
|
||||||
|
|
||||||
|
## Conversation Summary
|
||||||
|
|
||||||
|
assistant: ✅ New session started · model: volcengine/doubao-seed-2-0-pro-260215
|
||||||
|
user: System: [2026-04-04 23:20:58 GMT+8] Feishu[default] group oc_fb43a55ab3270fc0e205d879af6fe60e | 李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87) [msg:om_x100b52268b42c130b243b23962e02f2, @bot]
|
||||||
|
|
||||||
|
A new session was started via /new or /reset. Run your Session Startup sequence - read the required files before responding to the user. Then greet the user in your configured persona, if one is provided. Be yourself - use your defined voice, mannerisms, and mood. Keep it to 1-3 sentences and ask what they want to do. If the runtime model differs from default_model in the system prompt, mention the default model. Do not mention internal steps, files, tools, or reasoning.
|
||||||
|
Current time: Saturday, April 4th, 2026 — 11:21 PM (Asia/Shanghai) / 2026-04-04 15:21 UTC
|
||||||
|
assistant: 📊 若松你好,我是数据分析师小溪,有什么数据查询或分析需求都可以告诉我哦。
|
||||||
|
user: System: [2026-04-04 23:21:49 GMT+8] Feishu[xiaoxi] group oc_fb43a55ab3270fc0e205d879af6fe60e | 李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87) [msg:om_x100b5226860918b4b2b3b4b57a1359b]
|
||||||
|
|
||||||
|
Conversation info (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"message_id": "om_x100b5226860918b4b2b3b4b57a1359b",
|
||||||
|
"sender_id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"conversation_label": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"sender": "李若松",
|
||||||
|
"timestamp": "Sat 2026-04-04 23:21 GMT+8",
|
||||||
|
"group_subject": "oc_fb43a55ab3270fc0e205d879af6fe60e",
|
||||||
|
"is_group_chat": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Sender (untrusted metadata):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"label": "李若松 (ou_9cb5bc9a5f1b6cab2d78fd36139ecb87)",
|
||||||
|
"id": "ou_9cb5bc9a5f1b6cab2d78fd36139ecb87",
|
||||||
|
"name": "李若松"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
再次测试
|
||||||
|
assistant: 测试正常😊 有具体的数据查询或分析需求可以随时告诉我~
|
||||||
Loading…
Reference in New Issue
Block a user