Skip to content

model

Model implementation for the TestResults artifact.

ResultModel

Bases: BaseModel

A description of a Result.

Source code in mlte/results/model.py
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class ResultModel(BaseModel):
    """A description of a Result."""

    type: str
    """The type of result."""

    message: str
    """The message indicating the reason for status."""

    additional_data: str
    """Additional details that we don't want to put up front in the message, if any."""

    evidence_metadata: Optional[EvidenceMetadata]
    """Metadata about the evidence this came from."""

additional_data instance-attribute

Additional details that we don't want to put up front in the message, if any.

evidence_metadata instance-attribute

Metadata about the evidence this came from.

message instance-attribute

The message indicating the reason for status.

type instance-attribute

The type of result.

TestResultsModel

Bases: BaseModel

The model implementation for the TestResults artifact.

Source code in mlte/results/model.py
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
class TestResultsModel(BaseModel):
    """The model implementation for the TestResults artifact."""

    artifact_type: Literal[ArtifactType.TEST_RESULTS] = (
        ArtifactType.TEST_RESULTS
    )

    """Union discriminator."""

    test_suite_id: str = ""
    """The identifier of the TestSuite this TestResults came from."""

    test_suite: TestSuiteModel
    """A link to the actual TestSuite details."""

    results: dict[str, ResultModel] = {}
    """A list of validation results, for each test case."""

artifact_type = ArtifactType.TEST_RESULTS class-attribute instance-attribute

Union discriminator.

results = {} class-attribute instance-attribute

A list of validation results, for each test case.

test_suite instance-attribute

A link to the actual TestSuite details.

test_suite_id = '' class-attribute instance-attribute

The identifier of the TestSuite this TestResults came from.