From 78a9709fa2995f5b8e9dcafb651bcf5c4eedc506 Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Mon, 2 Jun 2025 12:45:14 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=B8=8D=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E5=9B=9E=E5=A4=8D=E5=9C=A8=E5=BE=AA=E7=8E=AF=E8=A7=82?= =?UTF-8?q?=E5=AF=9F=E4=B8=AD=E7=9A=84=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/heart_flow/observation/hfcloop_observation.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/chat/heart_flow/observation/hfcloop_observation.py b/src/chat/heart_flow/observation/hfcloop_observation.py index 1e1c7fe07..02617cba8 100644 --- a/src/chat/heart_flow/observation/hfcloop_observation.py +++ b/src/chat/heart_flow/observation/hfcloop_observation.py @@ -60,7 +60,7 @@ class HFCloopObservation: if action_type == "reply": consecutive_text_replies += 1 - response_text = cycle.loop_plan_info["action_result"]["action_data"].get("text", "[空回复]") + response_text = cycle.loop_action_info["reply_text"] responses_for_prompt.append(response_text) if is_taken: @@ -68,9 +68,10 @@ class HFCloopObservation: else: action_detailed_str += f"{action_taken_time_str}时,你选择回复(action:{action_type},内容是:'{response_text}'),但是动作失败了。{action_reasoning_str}\n" elif action_type == "no_reply": - action_detailed_str += ( - f"{action_taken_time_str}时,你选择不回复(action:{action_type}),{action_reasoning_str}\n" - ) + # action_detailed_str += ( + # f"{action_taken_time_str}时,你选择不回复(action:{action_type}),{action_reasoning_str}\n" + # ) + pass else: if is_taken: action_detailed_str += (