Function judgeNode

  • Creates an LLM-as-judge evaluation node with structured rubric output. The judge is a gmiNode that enforces single_turn execution and structured JSON output.

    Parameters

    • config: {
          rubric: string;
          schema: any;
          threshold?: number;
          model?: string;
      }
      • rubric: string

        Evaluation criteria description

      • schema: any

        Zod schema for structured score output

      • Optional threshold?: number

        Optional minimum passing score per dimension

      • Optional model?: string

        Optional model override for the judge LLM

    • Optional policies: NodePolicies

    Returns GraphNode