Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/agent / evaluator-optimizer / Rubric

Type Alias: Rubric

ts
type Rubric = 
  | {
  instructions: string;
  kind: "free-form";
}
  | {
  instructions: string;
  kind: "zod";
}
  | {
  kind: "llm-judge";
  promptTemplate: string;
};

Defined in: packages/agent/src/evaluator-optimizer/index.ts:24

Rubric discriminator. Pick the variant that matches your Evaluator's contract.

Stable