public interface LoopEvaluator
Evaluates whether an
LoopTerminationStrategy.EVALUATOR loop should
terminate after the current iteration.
Kept as an interface so that the evaluator can be backed by an agent call without the loop strategy having to know the full LLM pipeline.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldTerminate(String evaluatorAgentId, int iteration, LoopEvaluationContext context)
-
Method Details
-
shouldTerminate
- Parameters:
evaluatorAgentId- id of the agent registered in the repositoryiteration- current iteration number, 1-basedcontext- the run's current state and active workflow id- Returns:
- true if the loop should terminate, false to continue iterating
-