[Bugfix][Tool Parser] poolside_v1: accept tool calls without newline after function name (#47311)

Signed-off-by: Joe Rowell <joerowell4@gmail.com>
This commit is contained in:
Joe Rowell
2026-07-02 12:08:37 -07:00
committed by GitHub
parent e392bf7a68
commit 258f8de91f
2 changed files with 103 additions and 1 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ class PoolsideV1ToolParser(ToolParser):
self.func_call_regex = re.compile(r"<tool_call>.*?</tool_call>", re.DOTALL)
self.func_detail_regex = re.compile(
r"<tool_call>([^\n]*)\n(.*)</tool_call>", re.DOTALL
r"<tool_call>\s*([^\n<]+?)\s*\n?\s*(<arg_key>.*?)?</tool_call>", re.DOTALL
)
self.func_arg_regex = re.compile(
r"<arg_key>(.*?)</arg_key>\s*<arg_value>(.*?)</arg_value>", re.DOTALL