interceptBeforeLLMCall

fun <TFeature : Any> interceptBeforeLLMCall(interceptContext: InterceptContext<TFeature>, handle: suspend TFeature.(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(interceptContext, handle)

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