迁移:3804124,9e9e796

(feat:将no_reply内置、fix:优化reply,填补缺失值)
This commit is contained in:
Windpicker-owo
2025-09-01 21:12:55 +08:00
parent 3db6ce86ca
commit d86cfa90ad
13 changed files with 356 additions and 676 deletions

View File

@@ -507,9 +507,16 @@ class ActionPlanner:
self.last_obs_time_mark = time.time()
if mode == ChatMode.FOCUS:
no_action_block = """
动作no_reply
动作描述:不进行回复,等待合适的回复时机
mentioned_bonus = ""
if global_config.chat.mentioned_bot_inevitable_reply:
mentioned_bonus = "\n- 有人提到你"
if global_config.chat.at_bot_inevitable_reply:
mentioned_bonus = "\n- 有人提到你或者at你"
by_what = "聊天内容"
target_prompt = '\n "target_message_id":"触发action的消息id"'
no_action_block = f"""重要说明:
- 'no_reply' 表示只进行不进行回复,等待合适的回复时机(由系统直接处理)
- 当你刚刚发送了消息没有人回复时选择no_reply
- 当你一次发送了太多消息为了避免打扰聊天节奏选择no_reply
{{