interceptAgentBeforeClose
fun interceptAgentBeforeClose(feature: AIAgentFeature<*, *>, handle: suspend (AgentClosingContext) -> Unit)(source)
Deprecated
Please use interceptAgentClosing instead. This method is deprecated and will be removed in the next release.
Replace with
import ai.koog.agents.core.feature.handler.agent.AgentClosingContext
Content copied to clipboard
interceptAgentClosing(feature, handle)
Content copied to clipboard
Intercepts and sets a handler to be invoked before an agent is closed.