Genkit JS API reference
    Preparing search index...

    Type Alias Score

    Score: {
        details?: z.objectOutputType<
            { reasoning: z.ZodOptional<z.ZodString> },
            z.ZodTypeAny,
            "passthrough",
        >;
        error?: string;
        id?: string;
        score?: string | number | boolean;
        status?: "UNKNOWN" | "PASS" | "FAIL";
    }

    Zod schema for an evaluation score, including optional numeric/string/boolean score, status, and details.

    Type Declaration

    • Optionaldetails?: z.objectOutputType<
          { reasoning: z.ZodOptional<z.ZodString> },
          z.ZodTypeAny,
          "passthrough",
      >
    • Optionalerror?: string
    • Optionalid?: string
    • Optionalscore?: string | number | boolean
    • Optionalstatus?: "UNKNOWN" | "PASS" | "FAIL"