|
8 | 8 | from src.chat.heart_flow.utils_chat import get_chat_type_and_target_info |
9 | 9 | from src.manager.mood_manager import mood_manager |
10 | 10 | from src.chat.message_receive.chat_stream import ChatStream, chat_manager |
11 | | -from src.chat.utils.info_catcher import info_catcher_manager |
12 | 11 | from src.chat.utils.timer_calculator import Timer |
13 | 12 | from src.chat.utils.prompt_builder import global_prompt_manager |
14 | 13 | from .normal_chat_generator import NormalChatGenerator |
@@ -277,9 +276,6 @@ async def normal_response(self, message: MessageRecv, is_mentioned: bool, intere |
277 | 276 |
|
278 | 277 | logger.debug(f"[{self.stream_name}] 创建捕捉器,thinking_id:{thinking_id}") |
279 | 278 |
|
280 | | - info_catcher = info_catcher_manager.get_info_catcher(thinking_id) |
281 | | - info_catcher.catch_decide_to_response(message) |
282 | | - |
283 | 279 | # 如果启用planner,预先修改可用actions(避免在并行任务中重复调用) |
284 | 280 | available_actions = None |
285 | 281 | if self.enable_planner: |
@@ -373,8 +369,6 @@ async def plan_and_execute_actions(): |
373 | 369 | if isinstance(response_set, Exception): |
374 | 370 | logger.error(f"[{self.stream_name}] 回复生成异常: {response_set}") |
375 | 371 | response_set = None |
376 | | - elif response_set: |
377 | | - info_catcher.catch_after_generate_response(timing_results["并行生成回复和规划"]) |
378 | 372 |
|
379 | 373 | # 处理规划结果(可选,不影响回复) |
380 | 374 | if isinstance(plan_result, Exception): |
@@ -414,7 +408,6 @@ async def plan_and_execute_actions(): |
414 | 408 |
|
415 | 409 | # 检查 first_bot_msg 是否为 None (例如思考消息已被移除的情况) |
416 | 410 | if first_bot_msg: |
417 | | - info_catcher.catch_after_response(timing_results["消息发送"], response_set, first_bot_msg) |
418 | 411 |
|
419 | 412 | # 记录回复信息到最近回复列表中 |
420 | 413 | reply_info = { |
@@ -447,8 +440,6 @@ async def plan_and_execute_actions(): |
447 | 440 | # await self._check_switch_to_focus() |
448 | 441 | pass |
449 | 442 |
|
450 | | - info_catcher.done_catch() |
451 | | - |
452 | 443 | with Timer("处理表情包", timing_results): |
453 | 444 | await self._handle_emoji(message, response_set[0]) |
454 | 445 |
|
|
0 commit comments