Skip to content

Multi-Dimensional Evaluation

POST https://api.bipkit.io/api/v1/evaluate
Authorization: Bearer bpk_live_YOUR_API_KEY
Content-Type: application/json

Required Scope: evaluate:run

Field Type Required Description
state string Yes Shared input context (user message, tool call, event text) to evaluate.
evaluations object Yes Map of output names to typed evaluation definitions (choice, noul, or score).
engine string No Target engine tier: "bip-instant" (default) or "bip-cascade".
import { Bipkit } from "@bipware-org/bipkit";
const bipkit = new Bipkit();
const res = await bipkit.evaluate({
state: "Customer wants to cancel their enterprise contract and requests immediate GDPR data erasure.",
evaluations: {
is_gdpr_erasure: {
type: "noul",
instructions: "Request to delete personal data or exercise GDPR erasure rights",
},
urgency: {
type: "score",
levels: ["low", "medium", "high", "critical"],
instructions: "Legal and customer churn urgency",
},
queue: {
type: "choice",
choices: [
{ id: "privacy", label: "Privacy & Legal Compliance" },
{ id: "billing", label: "Billing & Renewals" },
{ id: "support", label: "General Support" },
],
},
},
engine: "bip-cascade",
});
console.log(res.request_id, res.results);
  • request_id: Save this identifier to link downstream feedback (POST /api/v1/feedback) or provenance exports (POST /api/v1/provenance/export).
  • usage: Reports evaluations_count, state_tokens, evaluation_tokens, total_tokens, and latency_ms.
  • results.<name>: Keyed identically to your request evaluations, returning typed certainty metrics for every dimension.