ToolCallFailedEvent
data class ToolCallFailedEvent(val eventId: String, val executionInfo: AgentExecutionInfo, val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: JsonObject, val toolDescription: String?, 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(eventId: String, executionInfo: AgentExecutionInfo, runId: String, toolCallId: String?, toolName: String, toolArgs: JsonObject, toolDescription: String?, error: AIAgentError?, timestamp: Long = Clock.System.now().toEpochMilliseconds())
constructor(runId: String, toolCallId: String?, toolName: String, toolArgs: JsonObject, error: AIAgentError, timestamp: Long = Clock.System.now().toEpochMilliseconds())
Properties
Link copied to clipboard
The error encountered during the tool's execution;
Link copied to clipboard
Provides contextual information about the execution associated with this event.
Link copied to clipboard
Specifies the type of the feature message for this event.
Link copied to clipboard
The arguments passed to the tool during the failed execution;
Link copied to clipboard
A unique identifier for the tool call that failed;
Link copied to clipboard
A description of the tool that failed;