Package akka.javasdk.agent.evaluator
Class SummarizationEvaluator
Object
akka.javasdk.agent.Agent
akka.javasdk.agent.evaluator.SummarizationEvaluator
@ComponentId("summarization-evaluator")
@AgentDescription(name="Summarization Evaluator Agent",
description="An agent that acts as an LLM judge to evaluate a summarization task.\n",
role="evaluator")
public class SummarizationEvaluator
extends Agent
An agent that acts as an LLM judge to evaluate a summarization task.
Model provider is defined in configuration
akka.javasdk.agent.evaluators.summarization-evaluator.model-provider
, which by default is the
same as the default model provider.
The system and user message prompts are loaded from PromptTemplate
with id
summarization-evaluator.system
and summarization-evaluator.user
respectively. Default
prompts are used if these are not defined. The prompts can be initialized or updated with the
PromptTemplate
entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
Nested classes/interfaces inherited from class akka.javasdk.agent.Agent
Agent.Effect<T>, Agent.StreamEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ComponentClient
protected final String
protected final com.typesafe.config.Config
-
Constructor Summary
ConstructorsConstructorDescriptionSummarizationEvaluator
(ComponentClient componentClient, com.typesafe.config.Config config) -
Method Summary
Methods inherited from class akka.javasdk.agent.Agent
context, effects, streamEffects
-
Field Details
-
componentId
-
componentClient
-
config
protected final com.typesafe.config.Config config
-
-
Constructor Details
-
SummarizationEvaluator
-
-
Method Details
-
evaluate
public Agent.Effect<SummarizationEvaluator.Result> evaluate(SummarizationEvaluator.EvaluationRequest req) -
modelProvider
-
prompt
-