interceptPlanCompletionEvaluationCompleted
abstract fun interceptPlanCompletionEvaluationCompleted(feature: AIAgentFeature<*, *>, handle: suspend (PlanCompletionEvaluationCompletedContext) -> Unit)(source)
Intercepts plan completion evaluation completed event to perform actions when a plan is evaluated for completion.
Parameters
feature
The feature associated with this handler;
handle
A suspend function that processes the completion of a plan completion evaluation.
Example:
pipeline.interceptPlanCompletionEvaluationCompleted(feature) { event ->
logger.info("Plan completion evaluated as: ${event.isCompleted}")
}Content copied to clipboard