Evalkeeper
    Preparing search index...

    Function weeklyCronRoute

    • The weekly check's cron route: answers at once, then runs each suite's quick set on its live model after the response. Call it with "Authorization: Bearer $CRON_SECRET"; anything else gets a 401.

      Parameters

      • w: Pick<EvalWiring, "runner" | "store" | "suites">

        Your wiring: its runner, store, and suites.

      • secret: () => string | undefined = ...

        The cron secret; process.env.CRON_SECRET by default.

      Returns (request: Request) => Promise<Response>

      // app/api/cron/evals-weekly/route.ts
      import { weeklyCronRoute } from "@crowandraven/evalkeeper/next";
      import { wiring } from "@/lib/evalkeeper";
      export const maxDuration = 300;
      export const GET = weeklyCronRoute(wiring);