Create Test Case
Create a test case for your test.
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 context for the test case. This is the additional information that can help the model generate the expected output.
An optional tag to categorize or label the test case (e.g., “general_knowledge”, “edge_cases”, “customer_query”).
A list of previous conversation turns, each a dictionary with “input” and “actual_output” keys. This is used for test cases designed for conversational AI.
Example: [{"input": "What is the capital of France?", "actual_output": "Paris"}, {"input": "What is the population of that city?", "actual_output": "2M"}]