onSubgraphExecutionCompleted

expect open suspend override fun onSubgraphExecutionCompleted(eventId: String, executionInfo: AgentExecutionInfo, context: AIAgentGraphContextBase, subgraph: AIAgentSubgraphBase<*, *>, input: Any?, inputType: TypeToken, output: Any?, outputType: TypeToken)(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 subgraph execution event;

context

The agent context in which the subgraph was executed;

subgraph

The subgraph that 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.