onSubgraphExecutionFailed

expect open suspend override fun onSubgraphExecutionFailed(eventId: String, executionInfo: AgentExecutionInfo, context: AIAgentGraphContextBase, subgraph: AIAgentSubgraphBase<*, *>, input: Any?, inputType: TypeToken, error: Throwable)(source)

Notifies all registered subgraph handlers when a subgraph execution fails.

Parameters

eventId

The unique identifier for the event group;

executionInfo

The execution information for the subgraph execution event;

context

The agent context in which the subgraph execution occurred;

subgraph

The subgraph for which the execution failed;

input

The input data that was provided to the subgraph when it failed;

inputType

The type of the input data provided to the subgraph;

error

The exception or error that caused the subgraph execution to fail.