tool_call_end
Method
This is a method of the ContextTraceEmitter class in the context_events module.Emit tool call end event.
Signature
Parameters
str
required
Name of the agent
str
required
Name of the tool called
Optional[str]
Tool result (will be smart-truncated to preserve key info)
float
default:"0.0"
Duration in milliseconds
Optional[str]
Error message if any
float
default:"0.0"
Cost in USD (e.g., 0.001 for internet search = 1 credit)
Uses
ContextEventtime.time
Source
View on GitHub
praisonaiagents/trace/context_events.py at line 545
