Returns
Returns a TestCase object for the given parameters.Example
Parameters
The ID of the test you want to create the test case for.
The input for the test case. This is the question or prompt you want to send to your model for a later evaluation.
The expected output for the input given. This is the correct answer or response you want to evaluate against.
The expected tools for the input given. This is the list of tools that the model should use to generate the expected output.
The context for the test case. This is the additional information that can help the model generate the expected output.
An optional variant to categorize or label the test case (e.g., “original”, “paraphrased”).
The ID of the user who has reviewed and validated this test case.
Language for the test case.
Follow this list to know the supported ones:
User vote for the test case (1 for good quality, -1 for bad quality, 0 for unreviewed).
Reason for the user vote given.
Confidence for the test case.
Reason for the confidence given.
The user’s objective for scenario-based tests. Used when creating SCENARIOS test cases.
Description of the user persona used to generate scenario-based test cases.
Description of the scenario context for scenario-based test cases.
The initial message from the synthetic user for scenario-based tests.
List of criteria to end the conversation in scenario-based simulations.