Package com.tnsai.coordination.judge
Class JudgeCoordinator.Builder<T>
java.lang.Object
com.tnsai.coordination.judge.JudgeCoordinator.Builder<T>
- Type Parameters:
T- the output type
- Enclosing class:
JudgeCoordinator<T>
Builder for JudgeCoordinator.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Sets the executor function that produces output.maxRetries(int maxRetries) Sets the maximum number of retries (default: 3).policy(JudgePolicy policy) Sets the judge policy for quality evaluation.Sets an optional timeout for the entire coordination cycle.
-
Method Details
-
policy
Sets the judge policy for quality evaluation. -
maxRetries
Sets the maximum number of retries (default: 3). This is the total number of attempts, not the number of retries after the first. -
executor
Sets the executor function that produces output. The function receives (agentId, feedback) and returns the output. Feedback is empty on the first call and contains judge suggestions on retries. -
timeout
Sets an optional timeout for the entire coordination cycle. -
build
-