onAgentExecutionFailed

expect open suspend override fun onAgentExecutionFailed(eventId: String, executionInfo: AgentExecutionInfo, agent: AIAgent<*, *>, context: AIAgentContext, runId: String, error: Throwable)(source)

Notifies all registered handlers about an error that occurred during agent execution.

Parameters

eventId

The unique identifier for the event group;

executionInfo

The execution information for the agent environment transformation event;

agent

The agent instance that encountered the error;

context

The context of the strategy execution;

runId

The unique identifier of the agent run;

error

The Throwable exception instance that was thrown during agent execution.