mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 15:52:34 +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,
|
"run_attempts": self._run_attempts,
|
||||||
"delegations": self.task.delegations if self.task else 0,
|
"delegations": self.task.delegations if self.task else 0,
|
||||||
"tool_name": tool.name,
|
"tool_name": tool.name,
|
||||||
"tool_args": str(tool_calling.arguments),
|
"tool_args": tool_calling.arguments,
|
||||||
"tool_class": tool.__class__.__name__,
|
"tool_class": tool.__class__.__name__,
|
||||||
"agent_key": (
|
"agent_key": (
|
||||||
getattr(self.agent, "key", "unknown") if self.agent else "unknown"
|
getattr(self.agent, "key", "unknown") if self.agent else "unknown"
|
||||||
|
|||||||
Reference in New Issue
Block a user