The access ladder
Different backends expose different signal about their own outputs. CLI calls this the access ladder, and every backend adapter reports which level it can reach so the calibration engine can pick the strongest valid nonconformity score automatically.
| Level | What the backend returns | Score CLI can build | Backends that reach it on the hosted service |
|---|---|---|---|
| L0 | Sampled text only | Sample-frequency and semantic-cluster nonconformity | Anthropic Claude; Gemini (API and Vertex AI); Bedrock natively hosted models; OpenAI and Azure reasoning configurations; Mistral, Groq, xAI |
| L1 | Generated-token log-probabilities (top-k) | LAC / APS set scores directly from option probabilities | OpenAI and Azure non-reasoning configurations; vLLM and SGLang; Bedrock Custom Model Import; Together, Fireworks, DeepSeek, Cerebras; OpenRouter pinned to an L1 OpenAI model; OpenAI-compatible servers with use_logprobs |
| L2 | Log-probabilities of text you supply | Candidate-likelihood scores: each option scored by the likelihood of its full text, with no top-k truncation or letter-position bias | vLLM and SGLang (access_hint="prompt-scoring"); Bedrock Custom Model Import (prompt-scoring) |
| L3 | Exact probabilities for chosen label tokens | Exact APS/RAPS, with no residual probability mass | vLLM and SGLang (access_hint="exact") |
| L4 | Hidden states | Trained-probe nonconformity scores | SGLang started with --enable-return-hidden-states (access_hint="hidden-state"). vLLM does not return hidden states over HTTP |
L2 to L4 on vLLM and SGLang depend on what the server supports, which the
connection Test probes (the tokenizer endpoint for
L2 and L3, hidden states for L4). At L4 the service trains a probe on half
of the calibration rows and conformalizes its scores on the other half, so
the split-conformal guarantee keeps its finite-sample validity; L4 serves
Set, Belief, Gate and Interval queries.
A higher access level never changes what a guarantee means — it only
changes how tight the resulting set or interval can be, and how cheaply
it can be produced. A Set primitive on Claude (L0) and the same Set
primitive on a self-hosted vLLM deployment (L3) both carry a coverage
guarantee of exactly the same shape; the vLLM version typically returns
smaller sets at lower cost per call.
How CLI picks a score
- With
access_hint="auto", the backend reaches the level its provider, model and settings allow, up to L1 (a reasoning-effort OpenAI config, for instance, reaches L0 even though the same model reaches L1 with reasoning effort set tonone). Levels above L1 are used only when you ask for them with a hint, because they change the scoring function and so the calibration. ASetwith more than 20 options runs at L0, since first-token log-probabilities cover at most 20 option letters. - The requested primitive names the guarantee it needs (coverage, risk, FDR, anytime).
- CLI selects the cheapest nonconformity score at or above the minimum access level that guarantee requires, and falls back to sampling-based scores when a higher level is unavailable.
- The chosen method is recorded in the answer’s
guarantee.methodfield — nothing about score selection is hidden from the caller.
Setting the access hint explicitly
Two knobs pin the score family instead of letting CLI choose:
access_hinton any hosted backend (OpenAIBackend,VLLMBackend, and the others), which applies to every query sent to that backend.backend_access_hinton a singleSetquery.
from cli_sdk import OpenAIBackend, Set
backend = OpenAIBackend(model="gpt-4.1-2025-04-14", access_hint="logprobs")
department = Set(
instructions="Which team should handle this ticket?",
options={
"billing": "Payments, invoicing, refunds",
"technical": "Bugs, outages, integrations",
},
calibration_profile="support-routing-v3",
backend_access_hint="logprobs", # force L1 scoring; error if unavailable
)| Hint | Level it pins |
|---|---|
"auto" | CLI picks (the default for access_hint; backend_access_hint left unset means the same) |
"sampling" | L0 |
"logprobs" | L1 |
"prompt-scoring" | L2 |
"exact" | L3 |
"hidden-state" | L4 |
Leave hints on "auto" unless you have a specific reason to pin the score
family, for example to guarantee that a calibration profile is never
silently served with a different score type after a model configuration
change. A pinned hint the backend cannot satisfy fails with
502 access_level_unavailable (a BackendError in the SDK) before any
model call, rather than downgrading the guarantee. The access level is
part of the profile’s fingerprint: a profile calibrated at L1 is not
served at L3, or the other way round, without recalibration.
For a CustomBackend, you declare the
level yourself with the access_level class attribute ("L0" to "L4").
Its evidence is what your methods return: option probabilities at L1 and
above, samples at L0.