onAgentStarting

suspend fun <TInput, TOutput> onAgentStarting(eventId: String, executionInfo: AgentExecutionInfo, runId: String, agent: AIAgent<*, *>, context: AIAgentContext)(source)

Notifies all registered handlers that an agent has started execution.

Parameters

eventId

The unique identifier for the event group.

executionInfo

The execution information for the agent environment transformation event

runId

The unique identifier for the agent run

agent

The agent instance for which the execution has started

context

The context of the agent execution, providing access to the agent environment and context features