A judge test, with each take's verdict and reason once its run has answered
GET
/v1/studio/judge-tests/{test_id}
const url = 'http://localhost:8300/v1/studio/judge-tests/example';const options = { method: 'GET', headers: {'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8300/v1/studio/judge-tests/example \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'status follows the ask run. Once it succeeded, pipelines derives the verdict from the answer and studio keeps it; an answer that fails the checks is failed with that error (a test never re-asks).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”test_id
required
string
Judge test UUID (unknown, another user’s or malformed = 404)
Responses
Section titled “Responses”The test
Media typeapplication/json
object
id
required
string format: uuid
pipeline_id
required
string format: uuid
node
required
string
take_ids
required
Array<string>
status
required
The ask run’s; failed too when its answer fails the checks
string
run_id
required
The ask run (null once it is gone)
string | null format: uuid
verdict
required
Pass when at least keep takes pass every must; null until it succeeded
string | null
first_failed
required
The first must the best take fails
string | null
takes
required
Each take’s verdict, in the order given; [] until it succeeded
Array<object>
object
take_id
required
string format: uuid
passes
required
Every must holds
boolean
rank
required
1 = best
integer
picked
required
Among the best keep that pass (what a batch would keep)
boolean
reason
required
string
checks
required
Array<object>
object
criterion
required
string
level
required
string
pass
required
boolean
error
required
string | null
created_at
required
string format: date-time
Example
{ "status": "queued", "verdict": "pass", "takes": [ { "checks": [ { "level": "must" } ] } ]}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Not found
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Retryable
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}