Package akka.javasdk.agent.evaluator
package akka.javasdk.agent.evaluator
Built-in LLM-as-judge agents (
ToxicityEvaluator, SummarizationEvaluator, HallucinationEvaluator) that call a model to judge a piece of text
or an answer against a reference.-
ClassDescriptionAn agent that acts as an LLM judge to evaluate whether an output contains information not available in the reference text given an input question.An answer to judge for hallucinated content.The verdict for an answer: whether it passed the hallucination check, and the judge's explanation for the label it assigned.An agent that acts as an LLM judge to evaluate a summarization task.A summary to judge against the document it was produced from.The verdict for a summarization task: whether the summary passed the quality check, and the judge's explanation for the label it assigned.An agent that acts as an LLM judge to evaluate if an AI response or other text is racist, biased, or toxic.The verdict for a piece of text: whether it passed the toxicity check, and the judge's explanation for the label it assigned.