diff --git a/backend/app/agent_types/xml_agent.py b/backend/app/agent_types/xml_agent.py index 256bcb42..11204242 100644 --- a/backend/app/agent_types/xml_agent.py +++ b/backend/app/agent_types/xml_agent.py @@ -98,7 +98,7 @@ async def call_tool(messages): # We construct an ToolInvocation from the function_call tool, tool_input = last_message.content.split("") _tool = tool.split("")[1] - if "" not in _tool: + if "" not in tool_input: _tool_input = "" else: _tool_input = tool_input.split("")[1]