Skip to main content
GET
Get one evaluation record

Authorizations

Authorization
string
header
required

An organization API key. Keys carry a role (read_write or read_only) and may be restricted to a namespace prefix such as acme/*, or to one namespace such as acme/prod/tenant_1. A prefix matches on a / boundary: acme/prod/tenant_1* covers acme/prod/tenant_1 and everything under acme/prod/tenant_1/, never acme/prod/tenant_12.

Path Parameters

ns
string
required

The namespace name, with any / sent as %2F. Up to 256 bytes. / separates levels of the hierarchy, as in acme/prod/tenant_123. Never exactly . or .., which a URL path can't carry.

Required string length: 1 - 256
Pattern: ^(?!\.\.?$)[A-Za-z0-9._:/-]+$
id
string
required

The evaluation id, ev_ and a ULID.

Pattern: ^ev_[0-9a-z]{26}$

Response

The evaluation, with context and raw.

An immutable record of one computation.

id
string
required
document_id
string
required

Up to 128 bytes. Never exactly . or .., which a URL path can't carry.

Required string length: 1 - 128
Pattern: ^(?!\.\.?$)[A-Za-z0-9._:/-]+$
revision
integer<int64>
required
Required range: x >= 0
incarnation
integer<int64>
required
Required range: x >= 0
judgment
string
required

A judgment, attribute or threshold name. Names are path segments in field references, so they never contain ..

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_-]+$
judgment_version
integer<int32>
required
Required range: x >= 1
engine
string
required
engine_version
string
required
model_id
string | null
required

The model the provider's response named, exactly as the provider sent it. null when the response named no model, and on an evaluation that got no response.

context_hash
string
required
Pattern: ^sha256:[0-9a-f]{64}$
context_tokens
integer
required

The tokens of the compiled context, as the judgment's engine counts them. Each image the engine read counts by its tiles (limits.images in GET /engines).

Required range: x >= 0
context_truncated
boolean
required
relations_capped
boolean
required

True when a relation stopped before considering every matching document, or a blocking relation found more qualifying candidates than its last_n, so what it shows may be missing one (its capped in relations). Read it as you read context_truncated.

output
object | null
required

The engine's numbers. Null when the evaluation failed.

status
enum<string>
required
Available options:
success,
failed
error
object | null
required

Why the evaluation failed. Null on success.

shadow
boolean
required

True for shadow evaluations from activation reports, which never produce answers.

replay_of
string | null
required

For a replay, the evaluation whose stored context it judged again: after an engine drift, in the new epoch; after a version was activated on another engine, an evaluation of the replaced version, judged by the new engine for the new version. Its context is that evaluation's, so it has none of its own. Replays recalibrate; they never produce answers. A drift's are never billed; an engine switch's are billed as judging. Null for every other evaluation.

created_at
string<date-time>
required

RFC 3339, UTC.

latency_ms
integer

How long the engine request that produced it took, retries excluded. Absent for evaluations recorded before it was measured.

Required range: x >= 0
watermark
integer<int64>

Entity judgments only. The log position the context was read at.

Required range: x >= 0
answers_generation
integer<int64>

Entity judgments only. How far the context had read other judgments' answers and block changes, beside watermark, as on the answer.

Required range: x >= 0
upstream
object[]

Entity judgments only, beside answers_generation. One entry per judgment whose answers the context read and one of whose documents was not up to date when this evaluation was made, so its last answer was rendered. It says what this evaluation saw, never where that judgment stands now, and it stays with the evaluation. Empty when every answer read was fresh.

relations
object

Entity judgments only. Each relation's selection and truncation when this evaluation was made, by relation name.

relation_shared_tokens
integer

Beside relations, the context's tokens no relation's entry accounts for, such as the document's own fields and the JSON around them.

Required range: x >= 0
features
object

Bool judgments with features only. Each feature's raw 64-bit value as this evaluation read it; a missing one is left out.

engine_answer_from
string

A reuse evaluation only: the evaluation whose engine answer it copied, never itself a reuse. A change that moved only the features left the engine's view the same, so the answer took the engine's answer with new features: no engine call, and not billed. It is a new answer, which outcomes join to like any. Its context is that evaluation's.

observed_at
string<date-time>

A reuse evaluation only. When its features were read.

aborted
boolean

A reuse evaluation only. true when its answer never landed; it is then never a calibration sample.

Entity judgments only, with include=history,context or from GET .../evaluations/{id}. Every related document the context read, rendered or aggregated, with the revision it was read at.

previous_revision
integer<int64>

For a recipe with previous, the revision the previous rendering came from; absent with first_revision.

Required range: x >= 0
first_revision
boolean

For a recipe with previous, true when the context showed nothing under previous, such as a document's first evaluation in its incarnation or a re-created id, and then previous_revision is absent. Absent for a recipe without previous.

context
object

With include=history,context, the compiled context the engine saw, keyed by path. Images are only where an image path puts them: under images.<name>, previous.images.<name>, and in a relation's records as images.<name> and its latest(images.<name>), a list as a list. Each is its ImageReference when the engine read it, or an OmittedImage when the engine did not. Everything else, state included, is JSON as written.

raw
any

With include=history,raw, the engine's answer to this judgment alone, in the shape of output. It never carries other judgments' answers or the engine's token counts.