Create judge
Creates a judge that scores runs of one agent in the given environment against a rubric, using an LLM. With trigger_mode=automatic, it evaluates completed runs that match filter_expression, sampled at sample_rate; with manual, evaluations start only through the trigger endpoints. The judge only evaluates runs of the agent_name in the body.
Required permission: judges.create.
Request
- Base URLhttps://api.connic.co
- AuthHTTP bearer
Path parameters
ID of the project the API key belongs to.
Query parameters
Environment the judge belongs to
Request body
Display name, at most 200 characters.
Agent whose runs the judge evaluates.
Model that scores runs, for example a connic/* model. At most 512 characters.
Extra instructions for the scoring model. At most 8,000 characters.
Include the evaluated agent's system prompt in the scoring context.
Scoring rubric with 1 to 20 criteria. The combined max_score is at most 10,000 and the combined name and description length at most 20,000 characters.
Expression over the run's input, output and context that must be true for automatic evaluation. Empty matches every run.
automatic evaluates runs when they complete; manual evaluates only when triggered.
Share of matching runs evaluated automatically, from 0 to 1.
Sends a judge_score_low notification when the average score, as a share of the maximum, drops below this value (0 to 1). null disables it.
Number of most recent evaluations averaged for notification_threshold (1 to 10,000). null averages all.
When false, runs are not evaluated automatically; on-demand triggers still work.
Response
Successful Response
An LLM judge that scores one agent's runs against a rubric, with evaluation totals.
Project the judge belongs to.
Environment whose runs the judge evaluates.
Agent whose runs the judge evaluates.
Model that scores runs.
Extra instructions for the scoring model.
Whether the evaluated agent's system prompt is included in the scoring context.
Scoring rubric.
Expression a run must match to be evaluated automatically. Empty matches every run.
automatic evaluates runs when they complete; manual evaluates only when triggered.
Share of matching runs evaluated automatically, from 0 to 1.
Average score share (0 to 1) below which a judge_score_low notification is sent. null when disabled.
Number of most recent evaluations averaged for notification_threshold. null averages all.
When false, runs are not evaluated automatically.
Average overall score of completed evaluations. null before the first one.
Average maximum possible score of completed evaluations. null before the first one.
Number of completed evaluations.
Changes
No recorded changes to this operation across all 17 revisions of this API.