vigiles API reference
    Preparing search index...

    Type Alias JudgeFn

    JudgeFn: (
        opts: { output: string; rubric: string; threshold?: number },
    ) => { pass: boolean; reason?: string; score: number }

    A model-graded judge: grades output against a rubric → score in [0,1].

    Type Declaration

      • (
            opts: { output: string; rubric: string; threshold?: number },
        ): { pass: boolean; reason?: string; score: number }
      • Parameters

        • opts: { output: string; rubric: string; threshold?: number }

        Returns { pass: boolean; reason?: string; score: number }