Skip to main content
PATCH
Update a project grader's policy

Authorizations

Authorization
string
header
required

An Egma API key.

Path Parameters

graderId
string
required
Minimum string length: 1

Query Parameters

projectId
string
Minimum string length: 1

Body

application/json
scope
object

Simulation selectors and an optional production sample. Only graders with scopeEditable set to true accept scope changes.

settings
object

Complete values for the definition's settingDefinitions. LLM graders use llm_provider and llm_model. Response latency uses maximum_response_time_ms, a positive integer in milliseconds. These settings belong to this project and do not create a definition version.

passThreshold
number

This grader passes when its score is at least this value. There is no overall run pass threshold.

Required range: 0 <= x <= 1

Response

The updated project grader.

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