ToolCallFailedEvent
data class ToolCallFailedEvent(val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: JsonObject, val error: AIAgentError, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent(source)
Captures an event where a tool call has failed during its execution.
This event is typically used to log or handle situations where a tool could not execute successfully due to an error. It includes relevant details about the failed tool call, such as the tool's name, the arguments provided, and the specific error encountered.
Constructors
Link copied to clipboard
constructor(runId: String, toolCallId: String?, toolName: String, toolArgs: JsonObject, error: AIAgentError, timestamp: Long = Clock.System.now().toEpochMilliseconds())