Enum Class ArgMatchMode

java.lang.Object
java.lang.Enum<ArgMatchMode>
dev.dokimos.core.evaluators.agents.ArgMatchMode
All Implemented Interfaces:
Serializable, Comparable<ArgMatchMode>, Constable

public enum ArgMatchMode extends Enum<ArgMatchMode>
Controls how a tool call's arguments are compared against the expected arguments.

Key-set semantics are defined relative to the expected arguments:

  • EXACT — the actual arguments must have the same keys as expected, and every value must match.
  • SUBSET — every expected entry must be present and matching in the actual arguments; the actual arguments may contain additional keys. Use this when you only care that specific arguments are correct.
  • SUPERSET — every actual entry must be present and matching in the expected arguments; the actual arguments may omit some expected keys.
  • IGNORE — arguments are not compared at all (name/order only).
  • Enum Constant Details

    • EXACT

      public static final ArgMatchMode EXACT
      Same key set as expected, all values match.
    • SUBSET

      public static final ArgMatchMode SUBSET
      Expected entries are a subset of the actual arguments (extras allowed).
    • SUPERSET

      public static final ArgMatchMode SUPERSET
      Actual entries are a subset of the expected arguments (omissions allowed).
    • IGNORE

      public static final ArgMatchMode IGNORE
      Do not compare arguments.
  • Method Details

    • values

      public static ArgMatchMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ArgMatchMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null