interceptToolCallCompleted
fun interceptToolCallCompleted(feature: AIAgentFeature<*, *>, handle: suspend (eventContext: ToolCallCompletedContext) -> Unit)(source)
Intercepts the result of a tool call with a custom handler for a specific feature.
Parameters
feature
The feature associated with this handler.
handle
A suspending function that defines the behavior to execute when a tool call result is intercepted.
Example:
pipeline.interceptToolCallCompleted(feature) { eventContext ->
// Handle the tool call result here
}
Content copied to clipboard