interceptLLMCallFailed
expect open override fun interceptLLMCallFailed(feature: AIAgentFeature<*, *>, handle: suspend (eventContext: LLMCallFailedContext) -> Unit)(source)
Intercepts errors during LLM calls.
Parameters
feature
The feature associated with this handler.
handle
The handler that processes LLM call errors.
Example:
pipeline.interceptLLMCallFailed(feature) { eventContext ->
// Handle the error here
}Content copied to clipboard