Genkit JS API reference
    Preparing search index...

    Type Alias EvalResponse

    EvalResponse: {
        evaluation:
            | {
                details?: z.objectOutputType<
                    { reasoning: z.ZodOptional<z.ZodString> },
                    z.ZodTypeAny,
                    "passthrough",
                >;
                error?: string;
                id?: string;
                score?: string | number | boolean;
                status?: "UNKNOWN" | "PASS" | "FAIL";
            }
            | {
                details?: z.objectOutputType<
                    { reasoning: z.ZodOptional<z.ZodString> },
                    z.ZodTypeAny,
                    "passthrough",
                >;
                error?: string;
                id?: string;
                score?: string | number | boolean;
                status?: "UNKNOWN" | "PASS" | "FAIL";
            }[];
        sampleIndex?: number;
        spanId?: string;
        testCaseId: string;
        traceId?: string;
    }

    Zod schema for a single evaluation response, containing test case ID and evaluation score(s).

    Type Declaration

    • evaluation:
          | {
              details?: z.objectOutputType<
                  { reasoning: z.ZodOptional<z.ZodString> },
                  z.ZodTypeAny,
                  "passthrough",
              >;
              error?: string;
              id?: string;
              score?: string | number | boolean;
              status?: "UNKNOWN" | "PASS" | "FAIL";
          }
          | {
              details?: z.objectOutputType<
                  { reasoning: z.ZodOptional<z.ZodString> },
                  z.ZodTypeAny,
                  "passthrough",
              >;
              error?: string;
              id?: string;
              score?: string | number | boolean;
              status?: "UNKNOWN" | "PASS" | "FAIL";
          }[]
    • OptionalsampleIndex?: number
    • OptionalspanId?: string
    • testCaseId: string
    • OptionaltraceId?: string