Skip to content

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.

created_at instance-attribute
created_at: datetime

The timestamp when the insight was generated.

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.

type instance-attribute
type: str

The type of insight. FAILURE indicates a group of related failures.