Skip to main content
We no longer recommend authoring rubrics by hand. The Docent plugin generates Reading steps inside an Analysis Plan for you. This SDK reference is kept for users with existing rubrics.
Rubrics define evaluation criteria for agent runs. A judge is an LLM configured to evaluate runs against a rubric. See Rubrics and Judges for concepts.

Create a Rubric

Parameters

str
required
ID of the collection.
Rubric
required
The rubric configuration. Must have version=1 for new rubrics.

Returns

str
The ID of the created rubric.

Get a Rubric

Parameters

str
required
ID of the collection.
str
required
ID of the rubric to retrieve.
int | None
Specific version number. If None, returns the latest version.

Returns

Rubric
The rubric configuration object.

List Rubrics

Parameters

str
required
ID of the collection.

Returns

list[dict]
List of rubric information dictionaries.

Get a Judge

Download a rubric configuration and create a callable judge instance. The judge reads LLM provider API keys from environment variables (OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.).

Parameters

str
required
ID of the collection.
str
required
ID of the rubric/judge to retrieve.
int | None
Specific version number. If None, returns the latest version.

Returns

BaseJudge
A callable judge instance. Use await judge(agent_run) to evaluate a run.
Running a judge locally requires the appropriate LLM provider API key set in your environment (e.g., OPENAI_API_KEY, ANTHROPIC_API_KEY). The required provider depends on the rubric’s judge_model configuration.