TestCases[]
.halguru.yaml ➤ TestScenarios[] ➤ TestCases[]
Represents the collection of test cases within the test scenario.
TestScenarios:
- TestCases:
- Name: Test 1
QuestionMessage: 2+2? Answer as one number.
AnswerMessageContains: []
AnswerMessageRegex: 4
Field Information#
| Name | Description |
|---|---|
| Title | Test Cases |
| Field Type | ObjectList |
| Required | False |
Field List#
Name is the primary key and should be unique in the TestCases[] list.
| Name | Type | Required | Description |
|---|---|---|---|
| Name | Text | ✔️ | The name of the test case. |
| QuestionMessage | Prompt | ✔️ | The question or input message directed to the agent. |
| AnswerMessageContains[] | SimpleList | A list of substrings that the output message is expected to contain. | |
| AnswerMessageRegex | Text | A regular expression pattern that the agent's response should conform to. |
Remarks#
This property defines the list of individual test cases that evaluate specific input-output behaviors for an agent. Each test case contains its own details, such as the question to be posed to the agent and the expected response validation. It is an optional property that allows for fine-grained control and assessment of the agent's responses under various conditions.
Technical Information#
| Property | Value |
|---|---|
| Path | TestScenarios[].TestCases[] |
| Internal Type | AgentModels.TestCaseItem |
| Internal Root Type | AgentHalGuru |
| File Extension | .halguru.yaml |
| JSON Schema | halguru-schema.json |
→ .halguru.yaml#
→ Reference Index#
→ Configuration Files#
| Last updated: | 2026-03-19 | |
| Autogenerated: | Yes | |
| AI powered: | Yes | |
| Core version: | 1.93.0 |