Skip to content

SessionMetadataShape

Structure Class

SessionMetadataShape dataclass

Bases: _SerdeShape

Metadata for a specific session in a batch evaluation, including ground truth data and test scenario identifiers.

Attributes

ground_truth class-attribute instance-attribute
ground_truth: GroundTruthSource | None = ...

The ground truth data for this session, including expected responses and assertions.

metadata class-attribute instance-attribute
metadata: dict[str, str] | None = ...

Additional key-value metadata associated with this session.

session_id instance-attribute
session_id: str

The unique identifier of the session this metadata applies to.

test_scenario_id class-attribute instance-attribute
test_scenario_id: str | None = ...

An optional test scenario identifier for categorizing and tracking evaluation results.