From 81cc0b334417e3de9eb8959b27777a19ed82e231 Mon Sep 17 00:00:00 2001 From: p Date: Fri, 14 Aug 2026 11:11:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20XML=20parameter=20=E6=94=AF=E6=8C=81=20s?= =?UTF-8?q?tring=3D"true"=20=E7=B1=BB=E5=9E=8B=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipeline_service/agent_loop.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pipeline_service/agent_loop.py b/pipeline_service/agent_loop.py index b38663f..82d3456 100644 --- a/pipeline_service/agent_loop.py +++ b/pipeline_service/agent_loop.py @@ -467,13 +467,13 @@ def _parse_agent_action(raw): if raw.startswith("```"): raw = raw.split("\n", 1)[1].rsplit("```", 1)[0].strip() - # deepseek 原生 function calling 输出 XML:... - m = re.search(r'(.*?)', raw, re.DOTALL) + # deepseek 原生 function calling 输出 XML:... + m = re.search(r']*>(.*?)', raw, re.DOTALL) if m: tool = m.group(1).strip() body = m.group(2) params = {} - for pm in re.finditer(r'(.*?)', body, re.DOTALL): + for pm in re.finditer(r']*>(.*?)', body, re.DOTALL): val = pm.group(2).strip() try: val = json.loads(val)