interceptAfterLLMCall
fun <TFeature : Any> interceptAfterLLMCall(feature: AIAgentFeature<*, TFeature>, featureImpl: TFeature, handle: suspend TFeature.(response: String) -> 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.interceptAfterLLMCall(MyFeature, myFeatureImpl) { response ->
// Process or analyze the response
}
Content copied to clipboard