@archastro/sdk
    Preparing search index...

    Interface AIEvaluationResult

    Result of an evaluation request: typed answers, the model that ran, and token usage.

    interface AIEvaluationResult {
        answers: (
            | { id: string; probability: number; type: "boolean" }
            | {
                choice: string;
                confidence?: number;
                id: string;
                probabilities: Record<string, {} | null>;
                type: "choice";
            }
            | {
                confidence?: number;
                id: string;
                legend: Record<string, {} | null>;
                probabilities: Record<string, {} | null>;
                score: number;
                type: "score";
            }
        )[];
        model: string;
        session_id?: string;
        usage?: AIEvaluationUsage;
    }
    Index

    Properties

    answers: (
        | { id: string; probability: number; type: "boolean" }
        | {
            choice: string;
            confidence?: number;
            id: string;
            probabilities: Record<string, {} | null>;
            type: "choice";
        }
        | {
            confidence?: number;
            id: string;
            legend: Record<string, {} | null>;
            probabilities: Record<string, {} | null>;
            score: number;
            type: "score";
        }
    )[]

    Typed answers. Each value is a boolean, choice, or score object with the question id.

    model: string

    Model identifier that produced the answers.

    session_id?: string

    UUID grouping this evaluation's usage record. Generated when omitted on the request.

    Token usage for this request. null when usage data is unavailable.