onAgentRunError

suspend fun onAgentRunError(agentId: String, runId: String, throwable: Throwable)(source)

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

Parameters

agentId

The unique identifier of the agent that encountered the error

runId

The unique identifier of the agent run

throwable

The exception that was thrown during agent execution