Test a judge of the saved pipeline on takes the caller picks (the Judge panel's Test on takes)
const url = 'http://localhost:8300/v1/studio/pipelines/example/judge-tests';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"node":"example","take_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8300/v1/studio/pipelines/example/judge-tests \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "node": "example", "take_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'One ask run of the judge as saved (criteria, keep, model, memory: the pipeline’s memory now), on 1 to 8 of the caller’s image or video takes in the order given; nothing is stored in memory and no batch is made. The brief is the first take’s prompt. Studio resolves the model as at Submit (a server: or remote: prompt, 5 s: else 503) and makes an interactive run of the ask workflow in the first take’s session (else the caller’s newest session; none: 422). 202 with the test queued (or failed at once with no live host); Another user’s pipeline or take: 404; a node that is not a judge, a take that is not an image or video: 422; too many open runs: 409.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Pipeline UUID (malformed = 404)
Request Bodyrequired
Section titled “Request Bodyrequired”object
A judge node of the saved pipeline
The caller’s image or video takes, in the order the judge sees them
Example generated
{ "node": "example", "take_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}Responses
Section titled “Responses”The test
object
The ask run’s; failed too when its answer fails the checks
The ask run (null once it is gone)
Pass when at least keep takes pass every must; null until it succeeded
The first must the best take fails
Each take’s verdict, in the order given; [] until it succeeded
object
Every must holds
1 = best
Among the best keep that pass (what a batch would keep)
object
Example
{ "status": "queued", "verdict": "pass", "takes": [ { "checks": [ { "level": "must" } ] } ]}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}