interceptToolValidationFailed
fun interceptToolValidationFailed(feature: AIAgentFeature<*, *>, handle: suspend (eventContext: ToolValidationFailedContext) -> Unit)(source)
Intercepts validation errors encountered during the execution of tools associated with the specified feature.
Parameters
feature
The feature associated with this handler.
handle
A suspendable lambda function that will be invoked when a tool validation error occurs.
Example:
pipeline.interceptToolValidationFailed(feature) { eventContext ->
// Handle the tool validation error here
}
Content copied to clipboard