Package com.tnsai.coordination.roma
Interface Verifier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Quality gate that verifies whether a result meets acceptance criteria.
Used by
RecursiveTaskSolver to validate solutions.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordVerification result containing acceptance status and optional feedback. -
Method Summary
-
Method Details
-
verify
Verifies if a result meets quality criteria.- Parameters:
task- the original taskresult- the result to verifyattemptNumber- which attempt this is (1-based)- Returns:
- verification result
-
llmBased
Creates an LLM-based verifier that asks an agent to judge result quality.- Parameters:
agent- the agent to use for verification- Returns:
- an LLM-based verifier
-
alwaysAccept
A verifier that always accepts.
-