invoke

abstract fun invoke(output: Output, context: AIAgentGraphContextBase): Boolean(source)

Invokes the contextual condition with the given output and context to evaluate its result.

Return

A boolean value indicating the result of the condition evaluation. Returns true if the condition is met, otherwise false.

Parameters

output

The output data passed to the condition for evaluation.

context

The contextual information required for evaluating the condition, provided as an implementation of the AIAgentGraphContextBase interface.