onAgentStarting

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

Notifies all registered handlers that an agent has started execution.

Parameters

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