From fd132a9e8d5f9d42a72e2151dfbdc2dd5e5fc2f7 Mon Sep 17 00:00:00 2001 From: richenglu <70729218@qq.com> Date: Sun, 25 Jan 2026 17:01:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dparse=5Faction=E5=87=BD?= =?UTF-8?q?=E6=95=B0=EF=BC=9A=E7=A7=BB=E9=99=A4=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E8=AF=AD=E6=B3=95=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phone_agent/actions/handler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phone_agent/actions/handler.py b/phone_agent/actions/handler.py index 0bef1c3a..b3f487cc 100644 --- a/phone_agent/actions/handler.py +++ b/phone_agent/actions/handler.py @@ -358,6 +358,8 @@ def parse_action(response: str) -> dict[str, Any]: response = response.replace('\n', '\\n') response = response.replace('\r', '\\r') response = response.replace('\t', '\\t') + response = response.replace("", "") + response = response.replace("", "") tree = ast.parse(response, mode="eval") if not isinstance(tree.body, ast.Call):