onSubgraphExecutionCompleted

suspend fun onSubgraphExecutionCompleted(eventId: String, executionInfo: AgentExecutionInfo, subgraph: AIAgentSubgraph<*, *>, context: AIAgentGraphContextBase, input: Any?, inputType: KType, output: Any?, outputType: KType)(source)

Notifies all registered subgraph handlers after a subgraph has been executed.

Parameters

eventId

The unique identifier for the event group.

executionInfo

The execution information for the agent environment transformation event

subgraph

The subgraph that was executed.

context

The agent context in which the subgraph was executed.

input

The input data provided to the subgraph.

inputType

The type of the input data provided to the subgraph.

output

The output data produced by the subgraph execution.

outputType

The type of the output data produced by the subgraph execution.