Skip to content

context

mlte/context/context.py

MLTE artifact context definition.

The MLTE artifact context defines the information necessary to utilize the MLTE package to generate, persist, and load MLTE evaluation artifacts.

Context dataclass

The MLTE context establishes the artifact context for a MLTE evaluation session.

Source code in mlte/context/context.py
14
15
16
17
18
19
20
21
22
23
24
@dataclass
class Context:
    """
    The MLTE context establishes the artifact context for a MLTE evaluation session.
    """

    model: str
    """The context model identifier."""

    version: str
    """The context model version identifier."""

model instance-attribute

The context model identifier.

version instance-attribute

The context model version identifier.