Class ConditionEvaluator
java.lang.Object
com.alibaba.cloud.ai.graph.agent.flow.node.ConditionEvaluator
- All Implemented Interfaces:
NodeAction
A node action that evaluates conditions to determine the next execution path. This
class examines the state and sets a condition flag for routing decisions.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(OverAllState state) static ConditionEvaluator.Builderbuilder()protected StringevaluateCondition(OverAllState state) Evaluates the condition based on the current state.
-
Constructor Details
-
ConditionEvaluator
public ConditionEvaluator()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceNodeAction- Throws:
Exception
-
evaluateCondition
Evaluates the condition based on the current state. Override this method to implement custom condition logic.- Parameters:
state- the current state- Returns:
- the condition result string
-
builder
-