InsightResult¶
Structure Class¶
InsightResult
dataclass
¶
Bases: _SerdeShape
An insight that groups related failures found across the sessions in a batch evaluation.
Attributes¶
affected_session_count
class-attribute
instance-attribute
¶
affected_session_count: int | None = ...
The number of distinct sessions affected by the insight.
description
instance-attribute
¶
description: str
A description of the failure pattern that the insight represents.
name
instance-attribute
¶
name: str
A generated label for the insight. The name is not an identifier and can differ between batch evaluations.
root_causes
class-attribute
instance-attribute
¶
root_causes: list[InsightRootCause] | None = ...
The root causes identified for the insight.
sample_sessions
class-attribute
instance-attribute
¶
sample_sessions: list[SampleSession] | None = ...
A sample of up to 10 sessions affected by the insight. Returned only when the insight has no root causes. Otherwise, sample sessions are returned for each root cause.