This commit is contained in:
marko-kraemer 2025-04-16 06:11:23 +01:00
parent dc1c19e5db
commit 6bcd37d6c5
1 changed files with 1 additions and 1 deletions

View File

@ -1236,7 +1236,7 @@ class ResponseProcessor:
# Always use xml_tag_name if it exists
if "xml_tag_name" in tool_call:
xml_tag_name = tool_call["xml_tag_name"]
return f"<tool_result> <{xml_tag_name}> {str(result)} </{xml_tag_name}>< /tool_result>"
return f"<tool_result> <{xml_tag_name}> {str(result)} </{xml_tag_name}> </tool_result>"
# Non-XML tool, just return the function result
function_name = tool_call["function_name"]