interceptBeforeAgentStarted

fun <TFeature : Any> interceptBeforeAgentStarted(feature: AIAgentFeature<*, TFeature>, featureImpl: TFeature, handle: suspend AgentStartContext<TFeature>.() -> 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.interceptBeforeAgentStarted(MyFeature, myFeatureImpl) {
readStages { stages ->
// Inspect agent stages
}
}