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())

Properties

Link copied to clipboard

The error encountered during the tool's execution;

Link copied to clipboard
open override val messageType: FeatureMessage.Type

Specifies the type of the feature message for this event.

Link copied to clipboard
Link copied to clipboard
open override val timestamp: Long

The timestamp of the event, in milliseconds since the Unix epoch.

Link copied to clipboard

The arguments passed to the tool during the failed execution;

Link copied to clipboard
Link copied to clipboard

The name of the tool that failed;