onSubgraphExecutionFailed
suspend fun onSubgraphExecutionFailed(eventId: String, executionInfo: AgentExecutionInfo, subgraph: AIAgentSubgraph<*, *>, context: AIAgentGraphContextBase, input: Any?, inputType: KType, throwable: 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 agent environment transformation event
subgraph
The subgraph for which the execution failed.
context
The agent context in which the subgraph execution occurred.
input
The input data that was provided to the subgraph when it failed.
inputType
The type of the input data provided to the subgraph.
throwable
The exception or error that caused the subgraph execution to fail.