fix: remove debug logging due to Logger limitations

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-02-24 13:24:47 +00:00
parent d64fde1a79
commit 4d8817dfa4

View File

@@ -300,15 +300,10 @@ class ToolUsage:
bool: True if the tool is being called with the same name and arguments as
the last call, False otherwise.
"""
self._logger.debug(f"Checking repeated usage for tool: {calling.tool_name}")
if not self.tools_handler or not self.tools_handler.last_used_tool:
return False
last_tool_usage = self.tools_handler.last_used_tool
self._logger.debug(
f"Comparing with last tool: {last_tool_usage.tool_name}, "
f"args: {last_tool_usage.arguments}"
)
if calling.tool_name != last_tool_usage.tool_name:
return False