The base interface for all kinds of annotations (span, trace, session)

interface Annotation {
    explanation?: string;
    identifier?: string;
    label?: string;
    metadata?: Record<string, unknown>;
    name: string;
    score?: number;
}

Hierarchy (View Summary)

Properties

explanation?: string

Explanation of the annotation result

identifier?: string

The identifier of the annotation. If provided, the annotation will be updated if it already exists.

label?: string

The label assigned by the annotation

metadata?: Record<string, unknown>

Metadata for the annotation

name: string

The name of the annotation

score?: number

The score assigned by the annotation