interceptAgentStarting

fun interceptAgentStarting(feature: AIAgentFeature<*, *>, handle: suspend (AgentStartingContext) -> Unit)(source)

Intercepts on before an agent started to modify or enhance the agent.

Parameters

handle

The handler that processes agent creation events

Example:

pipeline.interceptAgentStarting(InterceptContext) {
readStages { stages ->
// Inspect agent stages
}
}