// This file was auto-generated by Fern from our API Definition.

export interface AnnotationScoreResponse {
    id: string;
    organizationId: string;
    projectId: string;
    sessionId?: string | undefined;
    traceId?: string | undefined;
    spanId?: string | undefined;
    simulationId?: string | undefined;
    issueId?: string | undefined;
    value: number;
    passed: boolean;
    feedback: string;
    error?: string | undefined;
    errored: boolean;
    duration: number;
    tokens: number;
    cost: number;
    draftedAt?: string | undefined;
    annotatorId?: string | undefined;
    createdAt: string;
    updatedAt: string;
    source: "annotation";
    sourceId: AnnotationScoreResponse.SourceId;
    metadata: AnnotationScoreResponse.Metadata;
}

export namespace AnnotationScoreResponse {
    export type SourceId = "UI" | "API" | "SYSTEM" | string;

    export interface Metadata {
        rawFeedback: string;
        messageIndex?: number | undefined;
        partIndex?: number | undefined;
        startOffset?: number | undefined;
        endOffset?: number | undefined;
        textFormat?: "pretty-json" | undefined;
    }
}
