Test Case Service
Exploring the Test Case Service API in the Galtea SDK
The Test Service in the Galtea SDK allows you to manage test-cases for evaluating your products.
This Service is exposed by the galtea.tests
object and we will further explore its API down below.
Remember that we will be using the galtea
object. More information here.
Create Test Case
This method allows you to create a test case for your test.
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.
The tag for the test case. This is a label that can help you categorize or identify the test case.
Listing Tests
This method allows you to list all tests associated with a specific product.
The ID of the test you want to get the test cases from.
Retrieving Test
This method allows you to retrieve a specific test case by its ID.
The ID of the test case you want to retrieve.
Deleting Test
This method allows you to delete a specific test by its ID.
The ID of the test case you want to delete.