Interface EvaluationContext


public interface EvaluationContext
Context passed to an Evaluator when an evaluation is triggered.

Exposes the Subject being evaluated, the id of this evaluation and the configuration of the evaluator.

Not for user extension.

  • Method Summary

    Modifier and Type
    Method
    Description
    com.typesafe.config.Config
    The configuration of the evaluator for this evaluation, from its entry under akka.javasdk.evaluation.evaluators: the binding that the runtime used for the evaluated agent, with the evaluator entry as fallback, key by key.
    The unique id of this evaluation.
    The interaction being evaluated.
  • Method Details

    • subject

      Subject subject()
      The interaction being evaluated.
      Returns:
      the subject of this evaluation
    • evaluationId

      String evaluationId()
      The unique id of this evaluation.
      Returns:
      the evaluation id
    • config

      com.typesafe.config.Config config()
      The configuration of the evaluator for this evaluation, from its entry under akka.javasdk.evaluation.evaluators: the binding that the runtime used for the evaluated agent, with the evaluator entry as fallback, key by key. For an agent without an enabled binding, the evaluator entry alone. The keys agents and agent-roles are left out. The other keys the SDK reads, such as trigger and enabled, are present when the entries set them. The defaults under akka.javasdk.evaluation.defaults are not included. Empty when the evaluator has no entry.
      Returns:
      the configuration of the binding with the evaluator entry as fallback