Commit a7e992a0 authored by Your Name's avatar Your Name

Fix: Add <tool> to XML pattern in ApexBig50Parser

The regex pattern was missing <tool> - it only matched <tool_call>,
funktion>, and <tool_use>. Now it also matches <tool>.
parent caddb164
...@@ -407,8 +407,9 @@ class ApexBig50Parser(BaseParser): ...@@ -407,8 +407,9 @@ class ApexBig50Parser(BaseParser):
results = [] results = []
# XML patterns # XML patterns
# Note: <tool> (without _call) is also matched here
xml_patterns = [ xml_patterns = [
r'<(?:tool_call|function_call|tool_use)>(.*?)</(?:tool_call|function_call|tool_use)>', r'<(?:tool|tool_call|function_call|tool_use)>(.*?)</(?:tool|tool_call|function_call|tool_use)>',
r'\[TOOL_CALLS\](.*?)\[/TOOL_CALLS\]' r'\[TOOL_CALLS\](.*?)\[/TOOL_CALLS\]'
] ]
for p in xml_patterns: for p in xml_patterns:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment