List built-in judge templates
GET
/api/v1/agent_version/judge_templates
const url = 'https://app.prefactorai.com/api/v1/agent_version/judge_templates';const options = {method: 'GET', headers: {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 https://app.prefactorai.com/api/v1/agent_version/judge_templates \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Success
Media typeapplication/json
object
default_system_prompt_template
required
Liquid template wrapped around a judge criterion. The only variable is criterion.
string
status
required
string
templates
required
Array<object>
AgentVersion_JudgeTemplateobject
criterion
required
Rubric text inserted into the system prompt
string
description
required
What this template checks
string
key
required
Stable identifier for this template
string
name
required
Display name of the template
string
Example
{ "default_system_prompt_template": "You are a judge.\n\n{{ criterion }}", "status": "success", "templates": [ { "criterion": "Decide whether the agent completed every request that was still active at the end of the run.", "description": "Checks that the agent completed every request it was given.", "key": "completeness", "name": "Completeness" } ]}default
Section titled “default”Error
Media typeapplication/json
One of:
object
code
required
string
message
required
string
status
required
string
object
code
required
string
errors
required
object
key
additional properties
object recursive
message
required
string
status
required
string
object
code
required
string
message
required
string
retry_after_ms
required
Milliseconds until the client may retry.
integer
status
required
string
object
code
required
string
latest_revision_id
required
KnowledgebaseDocumentRevision_Id
A valid knowledgebase document revision ID
string
message
required
string
status
required
string
Example
{ "code": "bad_request", "status": "error"}