Update eval

updateEval(projectReference: String!, evalId: String!, input: UpdateEvalInput!): EvalSource!

Requires project.evals.write.

Arguments

ArgumentTypeRequired
projectReferenceString!Yes
evalIdString!Yes
inputUpdateEvalInput!Yes

Input fields

input

UpdateEvalInput

FieldTypeRequiredDescription
nameStringNo
descriptionStringNo
targetStringNo
datasetEvalDatasetInputNo
metrics[EvalMetricInput!]No
repetitionsIntNo
tags[String!]No
metadataJSONObjectNo
sourceTargetKindWriteTargetKindNoThe source to write; default project.
targetBranchIdIDNoRequired with the kind preview_branch.

Response

Returns EvalSource!. Open the type for its fields and nested types.

FieldTypeDescription
idID!
nameString!
descriptionString
targetKindEvalTargetKind!
targetString!
sourcePathString!
exportNameString!
sourceString!The source text of the eval file.

All fields of EvalSource.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation UpdateEval($projectReference: String!, $evalId: String!, $input: UpdateEvalInput!) {
  updateEval(projectReference: $projectReference, evalId: $evalId, input: $input) {
    id
    name
    capabilities
    description
    dynamicFields
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001",
  "evalId": "00000000-0000-4000-8000-000000000001",
  "input": {}
}