mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
Update tool usage logging to store tool arguments as native types instead of strings, enhancing data integrity and usability.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user