Package com.tnsai.prompt.optimizer
Class TestCase
java.lang.Object
com.tnsai.prompt.optimizer.TestCase
Test case for prompt optimization.
A test case consists of an input and expected output pair used to evaluate prompt performance.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreates a test case with default weight.Creates a test case with category.Creates a test case with all fields. -
Method Summary
Modifier and TypeMethodDescriptionstatic TestCase.Builderbuilder()Builder for test cases.getInput()floatbooleantoString()
-
Constructor Details
-
TestCase
Creates a test case with default weight. -
TestCase
Creates a test case with category. -
TestCase
Creates a test case with all fields.
-
-
Method Details