onSubgraphExecutionStarting

suspend fun onSubgraphExecutionStarting(eventId: String, executionInfo: AgentExecutionInfo, subgraph: AIAgentSubgraph<*, *>, context: AIAgentGraphContextBase, input: Any?, inputType: KType)(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 agent environment transformation event

subgraph

The subgraph that is about to be executed.

context

The agent context in which the subgraph is being executed.

input

The input data for the subgraph execution.

inputType

The type of the input data provided to the subgraph.