interceptAfterLLMCallWithTools

fun <TFeature : Any> interceptAfterLLMCallWithTools(feature: AIAgentFeature<*, TFeature>, featureImpl: TFeature, handle: suspend TFeature.(responses: List<Message.Response>, tools: List<ToolDescriptor>) -> Unit)(source)

Intercepts LLM calls with tools after they are made to process or log the structured response.

Parameters

handle

The handler that processes after-LLM-call-with-tools events

Example:

pipeline.interceptAfterLLMCallWithTools(MyFeature, myFeatureImpl) { response ->
// Process the structured response
}