Multi-Dimensional Evaluation
POST https://api.bipkit.io/api/v1/evaluateAuthorization: Bearer bpk_live_YOUR_API_KEYContent-Type: application/jsonRequired Scope: evaluate:run
Request Body Parameters
Section titled “Request Body Parameters”| 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". |
Example Request
Section titled “Example Request”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);from bipkit import Bipkit
client = Bipkit()
res = client.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",)
print(res.request_id, res.results)res, err := client.Evaluate(ctx, bipkit.EvaluateRequest{ State: "Customer wants to cancel their enterprise contract and requests immediate GDPR data erasure.", Engine: "bip-cascade", Evaluations: map[string]any{ "is_gdpr_erasure": map[string]any{ "type": "noul", "instructions": "Request to delete personal data or exercise GDPR erasure rights", }, "urgency": map[string]any{ "type": "score", "levels": []string{"low", "medium", "high", "critical"}, "instructions": "Legal and customer churn urgency", }, "queue": map[string]any{ "type": "choice", "choices": []bipkit.Candidate{ {ID: "privacy", Label: "Privacy & Legal Compliance"}, {ID: "billing", Label: "Billing & Renewals"}, {ID: "support", Label: "General Support"}, }, }, },})use std::collections::HashMap;use bipkit::EvaluateRequest;use serde_json::json;
let evaluations = HashMap::from([ ( "is_gdpr_erasure".into(), json!({ "type": "noul", "instructions": "Request to delete personal data or exercise GDPR erasure rights" }), ), ( "urgency".into(), json!({ "type": "score", "levels": ["low", "medium", "high", "critical"], "instructions": "Legal and customer churn urgency" }), ), ( "queue".into(), json!({ "type": "choice", "choices": [ { "id": "privacy", "label": "Privacy & Legal Compliance" }, { "id": "billing", "label": "Billing & Renewals" }, { "id": "support", "label": "General Support" } ] }), ),]);
let res = client .evaluate(&EvaluateRequest { state: "Customer wants to cancel their enterprise contract and requests immediate GDPR data erasure.".into(), evaluations, engine: Some("bip-cascade".into()), temperature: None, }) .await?;curl -X POST https://api.bipkit.io/api/v1/evaluate \ -H "Authorization: Bearer bpk_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "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" }'Response Highlights
Section titled “Response Highlights”request_id: Save this identifier to link downstream feedback (POST /api/v1/feedback) or provenance exports (POST /api/v1/provenance/export).usage: Reportsevaluations_count,state_tokens,evaluation_tokens,total_tokens, andlatency_ms.results.<name>: Keyed identically to your requestevaluations, returning typed certainty metrics for every dimension.
