From 4856c4a6856893f93a83b7d00b2245ca4b91801c Mon Sep 17 00:00:00 2001 From: Lorenze Jay Date: Mon, 31 Mar 2025 16:51:18 -0700 Subject: [PATCH] Update tool usage logging to store tool arguments as native types instead of strings, enhancing data integrity and usability. --- src/crewai/tools/tool_usage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/tools/tool_usage.py b/src/crewai/tools/tool_usage.py index 907023bef..8c6862e0d 100644 --- a/src/crewai/tools/tool_usage.py +++ b/src/crewai/tools/tool_usage.py @@ -562,7 +562,7 @@ class ToolUsage: "run_attempts": self._run_attempts, "delegations": self.task.delegations if self.task else 0, "tool_name": tool.name, - "tool_args": str(tool_calling.arguments), + "tool_args": tool_calling.arguments, "tool_class": tool.__class__.__name__, "agent_key": ( getattr(self.agent, "key", "unknown") if self.agent else "unknown"