Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

Test a judge of the saved pipeline on takes the caller picks (the Judge panel's Test on takes)

POST
/v1/studio/pipelines/{pipeline_id}/judge-tests
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.

pipeline_id
required
string

Pipeline UUID (malformed = 404)

Media typeapplication/json
object
node
required

A judge node of the saved pipeline

string
/^[a-z][a-z0-9_]{0,63}$/
take_ids
required

The caller’s image or video takes, in the order the judge sees them

Array<string>
>= 1 items <= 8 items unique items

Example generated

{
"node": "example",
"take_ids": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
]
}

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
Allowed values: queued running succeeded failed cancelled
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
Allowed values: pass fail
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>
<= 8 items
object
take_id
required
string format: uuid
passes
required

Every must holds

boolean
rank
required

1 = best

integer
>= 1 <= 8
picked
required

Among the best keep that pass (what a batch would keep)

boolean
reason
required
string
<= 300 characters
checks
required
Array<object>
object
criterion
required
string
level
required
string
Allowed values: must nice
pass
required
boolean
error
required
string | null
<= 2000 characters
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"
}

The resource’s state forbids this

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}