Enum Class ArgMatchMode
- All Implemented Interfaces:
Serializable,Comparable<ArgMatchMode>,Constable
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).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ArgMatchModeReturns the enum constant of this class with the specified name.static ArgMatchMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
EXACT
Same key set as expected, all values match. -
SUBSET
Expected entries are a subset of the actual arguments (extras allowed). -
SUPERSET
Actual entries are a subset of the expected arguments (omissions allowed). -
IGNORE
Do not compare arguments.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-