Evalkeeper
    Preparing search index...

    Type Alias CrisisRiskOptions

    What a crisis risk suite needs from the app.

    type CrisisRiskOptions = {
        earlierLimit?: number;
        extraCases?: readonly CrisisCase[];
        graderVersion?: string;
        key?: string;
        operation: string;
        run: Suite<CrisisRiskInput, CrisisRiskOutput, CrisisRiskLabel>["run"];
        shippedReviews?: boolean;
        threshold?: number;
        withoutBuiltIn?: boolean;
    }
    Index
    earlierLimit?: number

    How many earlier messages the detector reads. Default 3.

    extraCases?: readonly CrisisCase[]

    The app's own cases, added after the built-in ones.

    graderVersion?: string

    Bump when the app changes what its grading means. Default "1".

    key?: string

    The suite's key. Default "crisis_risk".

    operation: string

    The AI feature that decides, as the app names it ("detect_crisis").

    Runs the app's detector on one case, on exactly ctx.model, the way the app does in production (keywords first, say, then a model).

    shippedReviews?: boolean

    Use the reviews that ship with the built-in cases, so the ones its author or an expert reviewed arrive confirmed. Default true; false leaves every case pending for your own people to confirm.

    threshold?: number

    The risk at which the app flags; read for the risk check. Default 0.5.

    withoutBuiltIn?: boolean

    Leave out the built-in cases and use only extraCases.