Skip to main content
POST
Use a grader in the current project

Authorizations

Authorization
string
header
required

An Egma API key.

Path Parameters

graderDefinitionId
string
required
Minimum string length: 1

Query Parameters

projectId
string
Minimum string length: 1

Body

application/json
scope
object
required

Select all simulations, particular test suites or tests, and/or a production sample from 1 through 100 percent. production: null disables production grading.

passThreshold
number
required

The minimum score for this grader's individual result to pass.

Required range: 0 <= x <= 1
settings
object

Complete values for the definition's settingDefinitions. Omit settings to save the declared defaults on first use. LLM graders use llm_provider and llm_model; Response latency uses maximum_response_time_ms.

Response

The new current-project grader policy.

id
string
required
Minimum string length: 1
projectId
string
required
Minimum string length: 1
graderDefinitionId
string
required
Minimum string length: 1
name
string
required
description
string | null
required
owner
enum<string>
required
Available options:
egma,
project
type
enum<string>
required
Available options:
llm_as_judge,
code
modalities
enum<string>[]
required
Minimum array length: 1
Available options:
chat,
voice
scopeEditable
boolean
required
removable
boolean
required
scope
object
required
settings
object
required
passThreshold
number
required
Required range: 0 <= x <= 1
createdAt
string<date-time>
required
updatedAt
string<date-time>
required