Suggest judges from your failure critiques
curl --request POST \
--url https://gateway.omnia-voice.com/v1/criteria/suggest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"judge_model": "<string>"
}
'import requests
url = "https://gateway.omnia-voice.com/v1/criteria/suggest"
payload = { "judge_model": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({judge_model: '<string>'})
};
fetch('https://gateway.omnia-voice.com/v1/criteria/suggest', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gateway.omnia-voice.com/v1/criteria/suggest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'judge_model' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway.omnia-voice.com/v1/criteria/suggest"
payload := strings.NewReader("{\n \"judge_model\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://gateway.omnia-voice.com/v1/criteria/suggest")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"judge_model\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.omnia-voice.com/v1/criteria/suggest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"judge_model\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"created": [
{
"id": "<string>",
"name": "Complete final answer",
"description": "<string>",
"judge_prompt": "<string>",
"judge_model": "<string>",
"status": "draft",
"source": "human",
"tier": "aligned",
"trust": "trustworthy",
"tpr_ci": "<unknown>",
"tnr_ci": "<unknown>",
"fail_grades_needed": "<unknown>",
"pass_grades_needed": 123,
"tpr": 123,
"tnr": 123,
"kappa": 123,
"alignment_n": 123,
"aligned_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"unit": "request",
"population": "<string>",
"population_family": "<string>",
"online_enabled": true,
"online_percent": 123,
"drift_status": "ok",
"online_cap_usd": 123,
"online_spent_usd": 123,
"drift_signal": "stale",
"drift_reason": "<string>",
"drift_checked_at": "<string>"
}
],
"critiques_used": 123,
"skipped_duplicates": 123
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "Invalid API key",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}Judges (criteria) API
Suggest judges from your failure critiques
Clusters the workspace’s fail-grade critiques (10 or more required; the most recent 200 considered) into at most 5 DRAFT judges — your failure taxonomy, written for you, reviewed by you. Drafts only: each needs human review and a calibration run before anything trusts it — assist, never one-shot. A draft whose name already exists is skipped, not overwritten. One metered clustering call — spends the wallet like any judging (owner/admin key).
POST
/
v1
/
criteria
/
suggest
Suggest judges from your failure critiques
curl --request POST \
--url https://gateway.omnia-voice.com/v1/criteria/suggest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"judge_model": "<string>"
}
'import requests
url = "https://gateway.omnia-voice.com/v1/criteria/suggest"
payload = { "judge_model": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({judge_model: '<string>'})
};
fetch('https://gateway.omnia-voice.com/v1/criteria/suggest', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gateway.omnia-voice.com/v1/criteria/suggest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'judge_model' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway.omnia-voice.com/v1/criteria/suggest"
payload := strings.NewReader("{\n \"judge_model\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://gateway.omnia-voice.com/v1/criteria/suggest")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"judge_model\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.omnia-voice.com/v1/criteria/suggest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"judge_model\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"created": [
{
"id": "<string>",
"name": "Complete final answer",
"description": "<string>",
"judge_prompt": "<string>",
"judge_model": "<string>",
"status": "draft",
"source": "human",
"tier": "aligned",
"trust": "trustworthy",
"tpr_ci": "<unknown>",
"tnr_ci": "<unknown>",
"fail_grades_needed": "<unknown>",
"pass_grades_needed": 123,
"tpr": 123,
"tnr": 123,
"kappa": 123,
"alignment_n": 123,
"aligned_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"unit": "request",
"population": "<string>",
"population_family": "<string>",
"online_enabled": true,
"online_percent": 123,
"drift_status": "ok",
"online_cap_usd": 123,
"online_spent_usd": 123,
"drift_signal": "stale",
"drift_reason": "<string>",
"drift_checked_at": "<string>"
}
],
"critiques_used": 123,
"skipped_duplicates": 123
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "Invalid API key",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}Authorizations
Your workspace API key, e.g. sk_sovereign_..., sent as Authorization: Bearer <key>.
Body
application/json
Model that does the clustering. Defaults to the recommended judge.
⌘I