interceptBeforeNode
fun <TFeature : Any> interceptBeforeNode(feature: AIAgentFeature<*, TFeature>, featureImpl: TFeature, handle: suspend TFeature.(node: AIAgentNodeBase<*, *>, context: AIAgentContextBase, input: Any?) -> Unit)(source)
Intercepts node execution before it starts.
Parameters
handle
The handler that processes before-node events
Example:
pipeline.interceptBeforeNode(MyFeature, myFeatureImpl) { node, context, input ->
logger.info("Node ${node.name} is about to execute with input: $input")
}
Content copied to clipboard