Judges
client.judges — CRUD for evaluation judges, with version-on-update semantics.
Create
from layerlens import Stratix
client = Stratix()
# Optionally fetch a model to use as the judge's LLM
models = client.models.get(type="public", name="gpt-4o")
model = models[0]
judge = client.judges.create(
name="Code Quality Judge",
evaluation_goal="Evaluate the quality of code output including correctness, readability, and style",
model_id=model.id,
)
print(f"Created judge {judge.id}: {judge.name}")Get
judge = client.judges.get(judge_id)
print(f"Judge: {judge.name}, version: {judge.version}")List
Update — creates a new version
Delete
Async
Versioning model
Source samples
Sample
What it shows
See also
Last updated
Was this helpful?