interceptBeforeAgentStarted
fun <TFeature : Any> interceptBeforeAgentStarted(interceptContext: InterceptContext<TFeature>, handle: suspend (AgentStartingContext<TFeature>) -> Unit)(source)
Deprecated
Please use interceptAgentStarting instead. This method is deprecated and will be removed in the next release.
Replace with
import ai.koog.agents.core.feature.handler.agent.AgentStartingContext
Content copied to clipboard
interceptAgentStarting(interceptContext, handle)
Content copied to clipboard
Intercepts on before an agent started to modify or enhance the agent.