Skip to main content
The Test Case Service in the Galtea SDK allows you to manage test-cases for evaluating your products. This Service is exposed by the galtea.test_cases object.
Remember that we will be using the galtea object. More information here.

Quick Example

First, initialize the Galtea SDK:
galtea = Galtea(api_key="YOUR_API_KEY")
Create a test case:
test_case = galtea.test_cases.create(
    test_id=test_id,
    input="What is the capital of France?",
    expected_output="Paris",
    context="Geography facts",
    variant="original",
)
List test cases:
test_cases = galtea.test_cases.list(test_id=test_id, limit=20)
Get a test case by ID:
test_case = galtea.test_cases.get(test_case_id=test_case_id)

Service Methods

Test Case

Each challenge in a test for evaluating product performance