ToolValidationFailedContext

data class ToolValidationFailedContext(val eventId: String, val executionInfo: AgentExecutionInfo, val runId: String, val toolCallId: String?, val toolName: String, val toolDescription: String?, val toolArgs: JsonObject, val message: String, val error: AIAgentError) : ToolCallEventContext(source)

Represents the context for handling validation errors that occur during the execution of a tool.

Constructors

Link copied to clipboard
constructor(eventId: String, executionInfo: AgentExecutionInfo, runId: String, toolCallId: String?, toolName: String, toolDescription: String?, toolArgs: JsonObject, message: String, error: AIAgentError)

Properties

Link copied to clipboard

The AIAgentError error describing the validation issue.

Link copied to clipboard
open override val eventId: String

The unique identifier for the event.

Link copied to clipboard

Represents the specific type of event handled within the event handler context, categorizing the nature of agent-related or strategy-related events.

Link copied to clipboard

The execution information containing parentId and current execution path;

Link copied to clipboard

A message describing the validation error.

Link copied to clipboard

The unique identifier for this tool call session;

Link copied to clipboard

The arguments passed to the tool when the error occurred;

Link copied to clipboard

The unique identifier for this tool call;

Link copied to clipboard

A description of the tool being executed;

Link copied to clipboard

The name of the tool associated with the validation error;