@verdict-ai/sdk
v0.4.0
Published
Verdict TypeScript SDK — a Resend-style client for the evaluation API.
Maintainers
Readme
@verdict-ai/sdk
Typed HTTP client for the Verdict REST API.
npm install @verdict-ai/sdkimport { Verdict } from "@verdict-ai/sdk";
const verdict = new Verdict({ baseUrl: "http://localhost:8787" });
const rubric = await verdict.rubrics.create({
name: "Presence", criteria: [{ id: "present", name: "Has text",
judge: { type: "benchmark", method: "length", min: 1 } }],
});
const evaluation = await verdict.evaluations.create({
rubric: rubric.id, inputs: [{ type: "text", text: "Hello Verdict" }],
});
console.log(evaluation.aggregate.score);Requires Node 22 or newer. Documentation. MIT licensed.
