Package com.embabel.agent.api.tool
Interface ReplanDecider
-
- All Implemented Interfaces:
public interface ReplanDeciderFunctional interface for deciding whether to trigger replanning based on tool results.
Implementations inspect the ReplanContext and return either:
A ReplanDecision to trigger replanning with the specified reason and blackboard updates
nullto continue normally and return the tool result
-
-
Method Summary
Modifier and Type Method Description abstract ReplanDecisionevaluate(ReplanContext context)Evaluate whether replanning is needed based on the tool result context. -
-
Method Detail
-
evaluate
abstract ReplanDecision evaluate(ReplanContext context)
Evaluate whether replanning is needed based on the tool result context.
- Parameters:
context- The context containing result, agent process, and tool metadata- Returns:
A ReplanDecision to trigger replanning, or null to continue normally
-
-
-
-