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