[Tool Parser][2/3] Use self.tools instead of request.tools in tool parsers (#38189)

Signed-off-by: sfeng33 <4florafeng@gmail.com>
This commit is contained in:
Flora Feng
2026-03-31 13:41:36 +08:00
committed by GitHub
parent 44eef0ca1e
commit d53cb9cb8e
16 changed files with 113 additions and 105 deletions
+2 -2
View File
@@ -312,7 +312,7 @@ class SeedOssToolParser(ToolParser):
)
tool_calls = [
self._parse_xml_function_call(function_call_str, request.tools)
self._parse_xml_function_call(function_call_str, self.tools)
for function_call_str in function_calls
]
@@ -566,7 +566,7 @@ class SeedOssToolParser(ToolParser):
# Parse to get the complete arguments
try:
parsed_tool = self._parse_xml_function_call(
func_content, request.tools if request else None
func_content, self.tools
)
if parsed_tool:
# Update existing entry in prev_tool_call_arr with complete arguments