interceptBeforeLLMCall

fun interceptBeforeLLMCall(feature: AIAgentFeature<*, *>, handle: suspend (eventContext: LLMCallStartingContext) -> Unit)(source)

Deprecated

Please use interceptLLMCallStarting instead. This method is deprecated and will be removed in the next release.

Replace with

import ai.koog.agents.core.feature.handler.llm.LLMCallStartingContext
interceptLLMCallStarting(feature, handle)

Intercepts LLM calls before they are made (deprecated name).