Evaluation Primitives
Bipkit models every decision through three strongly typed primitives. You can combine any number of them in a single POST /api/v1/evaluate call.
1. choice — Categorical Classification
Section titled “1. choice — Categorical Classification”Selects the best-matching candidate from an explicit list of options, returning normalized probabilities across candidates, the winning top_choice, separation margin, and uncertainty_entropy.
{ "type": "choice", "choices": [ { "id": "billing", "label": "Billing & Refunds" }, { "id": "infrastructure", "label": "Server & Database Outages" }, { "id": "general", "label": "General Product Questions" } ]}Best for: Intent routing, LLM tier selection, support queue assignment, and domain tagging.
2. noul — Binary Hypothesis Testing
Section titled “2. noul — Binary Hypothesis Testing”Evaluates a yes/no condition against the state and returns a calibrated probability noul in [0.0, 1.0] representing $P(\texttrue)$.
{ "type": "noul", "instructions": "Destructive deletion of database records or wiping production files"}Best for: Tool safety gates, PII/compliance flags, escalation triggers, and urgency detection.
3. score — Continuous Ordinal Rating
Section titled “3. score — Continuous Ordinal Rating”Rates a state along an ordered progression of discrete levels (from lowest to highest), returning the winning level, a continuous expected score, and the full probability distribution across levels.
{ "type": "score", "levels": ["low", "medium", "high", "critical"], "instructions": "Operational severity and customer impact"}Best for: Incident severity, risk scoring, lead qualification, and priority banding.
