Skip to content

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.

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.

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.

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.