interceptToolCallFailed
fun interceptToolCallFailed(feature: AIAgentFeature<*, *>, handle: suspend (eventContext: ToolCallFailedContext) -> Unit)(source)
Sets up an interception mechanism to handle tool call failures for a specific feature.
Parameters
feature
The feature associated with this handler.
handle
A suspend function that is invoked when a tool call fails.
Example:
pipeline.interceptToolCallFailed(feature) { eventContext ->
// Handle the tool call failure here
}
Content copied to clipboard