interceptLLMCallCompleted
fun <TFeature : Any> interceptLLMCallCompleted(interceptContext: InterceptContext<TFeature>, handle: suspend TFeature.(eventContext: LLMCallCompletedContext) -> Unit)(source)
Intercepts LLM calls after they are made to process or log the response.
Parameters
handle
The handler that processes after-LLM-call events
Example:
pipeline.interceptLLMCallCompleted(interceptContext) { eventContext ->
// Process or analyze the response
}
Content copied to clipboard