Record Class TestDefinition
java.lang.Object
java.lang.Record
uno.anahata.asi.yam.tools.benchmarks.TestDefinition
- Record Components:
testCode- The unique identifier code for the test (e.g., "JAVA-JNA-1").title- The descriptive title of the challenge.rawPrompt- The core task objective delivered to candidate models.toolkits- The optional list ofToolkitSettingsconfiguring enabled toolkits and their permissions (null for container defaults).
public record TestDefinition(String testCode, String title, String rawPrompt, List<ToolkitSettings> toolkits)
extends Record
Immutable descriptor representing a standardized test challenge within a benchmark suite.
Encapsulates the unique test code, human-readable title, raw goal prompt, and optional list of ToolkitSettings.
If toolkits is null, the test inherits the container's default tool classes and permissions.
- Author:
- anahata
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for therawPromptrecord component.private final StringThe field for thetestCoderecord component.private final StringThe field for thetitlerecord component.private final List<ToolkitSettings> The field for thetoolkitsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTestDefinition(String testCode, String title, String rawPrompt, List<ToolkitSettings> toolkits) Canonical constructor preserving null or unmodifiable collection copies. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getResolvedToolPermissions(Class<?> concreteJavaClass) Aggregates and resolves all tool permission overrides configured across all toolkits.Extracts the fully qualified class names (FQNs) or names of all configured toolkits for this test.final inthashCode()Returns a hash code value for this object.Returns the value of therawPromptrecord component.testCode()Returns the value of thetestCoderecord component.title()Returns the value of thetitlerecord component.toolkits()Returns the value of thetoolkitsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
testCode
-
title
-
rawPrompt
-
toolkits
The field for thetoolkitsrecord component.
-
-
Constructor Details
-
TestDefinition
public TestDefinition(String testCode, String title, String rawPrompt, List<ToolkitSettings> toolkits) Canonical constructor preserving null or unmodifiable collection copies.- Parameters:
testCode- The unique identifier code.title- The challenge title.rawPrompt- The raw prompt text.toolkits- The list of toolkit settings.
-
-
Method Details
-
getToolkitFqns
-
getResolvedToolPermissions
Aggregates and resolves all tool permission overrides configured across all toolkits.- Parameters:
concreteJavaClass- The resolved concrete class for Java tooling in the active container.- Returns:
- A consolidated map of tool permission keys (e.g.
"SwingJava.compileAndExecute") to their permissions.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
testCode
-
title
-
rawPrompt
-
toolkits
-

