interceptToolCallStarting
fun interceptToolCallStarting(feature: AIAgentFeature<*, *>, handle: suspend (eventContext: ToolCallStartingContext) -> Unit)(source)
Intercepts and handles tool calls for the specified feature.
Parameters
feature
The feature associated with this handler.
handle
A suspend lambda function that processes tool calls.
Example:
pipeline.interceptToolCallStarting(feature) { eventContext ->
// Process or log the tool call
}
Content copied to clipboard