onSubgraphExecutionStarting

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

Notifies all registered subgraph handlers before a subgraph is 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 is being executed;

subgraph

The subgraph that is about to be executed;

input

The input data for the subgraph execution;

inputType

The type of the input data provided to the subgraph.