Python
import os
from dataframer import Dataframer
client = Dataframer(
api_key=os.environ.get("DATAFRAMER_API_KEY"), # This is the default and can be omitted
)
judges = client.dataframer.judges.list()
print(judges.count)curl https://df-api.dataframer.ai/api/dataframer/judges/ \
-H "Authorization: Bearer $DATAFRAMER_API_KEY"{
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"latest_version": {
"version_number": 123,
"model": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"dimensions": [
{
"dimension_id": "<string>",
"name": "<string>",
"scoring_model": "pass_fail",
"required": true
}
]
}
}
],
"count": 123
}Judges
List judges
List the workspace’s judges with their latest ready version
GET
/
api
/
dataframer
/
judges
/
Python
import os
from dataframer import Dataframer
client = Dataframer(
api_key=os.environ.get("DATAFRAMER_API_KEY"), # This is the default and can be omitted
)
judges = client.dataframer.judges.list()
print(judges.count)curl https://df-api.dataframer.ai/api/dataframer/judges/ \
-H "Authorization: Bearer $DATAFRAMER_API_KEY"{
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"latest_version": {
"version_number": 123,
"model": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"dimensions": [
{
"dimension_id": "<string>",
"name": "<string>",
"scoring_model": "pass_fail",
"required": true
}
]
}
}
],
"count": 123
}A judge grades content against a rubric you build in the app — see Judges.
Authorizations
API Key authentication. Format: "Bearer YOUR_API_KEY"
Query Parameters
Only judges belonging to this project.
Required range:
x <= 200
