Class JudgeAgent

Object
akka.javasdk.agent.Agent
akka.javasdk.testkit.eval.JudgeAgent
All Implemented Interfaces:
akka.javasdk.agent.AgentDelegationWorker

@Component(id="eval-judge") public class JudgeAgent extends akka.javasdk.agent.Agent
The agent behind Judge.modelBased(akka.javasdk.testkit.TestKit): sends the model one request and reads back a Judge.Verdict.

Uses the model provider configured in akka.javasdk.agent.model-provider, or the one at the configuration path the request names. A provider registered for this class in the TestKit settings takes precedence over both, so to run without a provider register a TestModelProvider for this class as for any other agent.

Memory is disabled, so each judgment stands alone.

The component is registered when the TestKit starts. It is not part of the deployed service.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     

    Nested classes/interfaces inherited from class akka.javasdk.agent.Agent

    akka.javasdk.agent.Agent.AgentReply<T>, akka.javasdk.agent.Agent.Effect<T>, akka.javasdk.agent.Agent.StreamEffect, akka.javasdk.agent.Agent.TokenUsage
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    akka.javasdk.agent.Agent.Effect<Judge.Verdict>
     

    Methods inherited from class akka.javasdk.agent.Agent

    _internalSetContext, context, effects, streamEffects

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JudgeAgent

      public JudgeAgent()
  • Method Details