From a557d43b64d410a32eb8dbe4f5892185348a8b13 Mon Sep 17 00:00:00 2001 From: Eduardo Chiarotti Date: Thu, 10 Apr 2025 15:59:43 -0300 Subject: [PATCH] feat: remove unused logic --- src/crewai/tools/tool_usage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crewai/tools/tool_usage.py b/src/crewai/tools/tool_usage.py index 78942fc39..c73faa5cb 100644 --- a/src/crewai/tools/tool_usage.py +++ b/src/crewai/tools/tool_usage.py @@ -168,8 +168,8 @@ class ToolUsage: if self.agent: event_data = { - "agent_key": self.agent.key if self.agent else None, - "agent_role": self.agent.role if self.agent else None, + "agent_key": self.agent.key, + "agent_role": self.agent.role, "tool_name": self.action.tool, "tool_args": self.action.tool_input, "tool_class": self.action.tool,