diff --git a/backend/agentpress/response_processor.py b/backend/agentpress/response_processor.py index cf2a93d3..6f65d33c 100644 --- a/backend/agentpress/response_processor.py +++ b/backend/agentpress/response_processor.py @@ -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" <{xml_tag_name}> {str(result)} < /tool_result>" + return f" <{xml_tag_name}> {str(result)} " # Non-XML tool, just return the function result function_name = tool_call["function_name"]