I'm getting this error often when my agents try to call tools, skills or other things:
ValueError: Tool request must have a tool_args (type dictionary) field
Traceback (most recent call last):
Traceback (most recent call last):
File "/a0/helpers/extension.py", line 176, in _run_async
data["result"] = await data["result"]
^^^^^^^^^^^^^^^^^^^^
File "/a0/agent.py", line 572, in handle_exception
raise exception # exception handling is done by extensions
^^^^^^^^^^^^^^^
File "/a0/agent.py", line 485, in monologue
tools_result = await self.process_tools(agent_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/a0/helpers/extension.py", line 183, in _run_async
result = _process_result(data)
^^^^^^^^^^^^^^^^^^^^^
File "/a0/helpers/extension.py", line 143, in _process_result
raise exc
File "/a0/helpers/extension.py", line 176, in _run_async
data["result"] = await data["result"]
^^^^^^^^^^^^^^^^^^^^
File "/a0/agent.py", line 854, in process_tools
await self.validate_tool_request(tool_request)
File "/a0/helpers/extension.py", line 183, in _run_async
result = _process_result(data)
^^^^^^^^^^^^^^^^^^^^^
File "/a0/helpers/extension.py", line 143, in _process_result
raise exc
File "/a0/helpers/extension.py", line 176, in _run_async
data["result"] = await data["result"]
^^^^^^^^^^^^^^^^^^^^
File "/a0/agent.py", line 958, in validate_tool_request
if not isinstance(tool_name, str) or not tool_name.strip():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I've had the agent try to troubleshoot and try to fix multiple times, I've even deleted the whole container and started from scratch. Anyone else having this issue? It ruins my workflow as it stops the agent in their tracks when they are working a task.