updateEval

Change fields of a structured eval, such as its name, target, dataset or metrics, where an omitted field keeps its value; returns the updated eval source document. Requires project.evals.write.

Arguments

  • projectReferenceString!required

  • evalIdString!required

  • inputUpdateEvalInput!required

  • input.nameString

  • input.descriptionString

  • input.targetString

  • input.datasetEvalDatasetInput

  • input.metrics[EvalMetricInput!]

  • input.repetitionsInt

  • input.tags[String!]

  • input.metadataJSONObject

  • input.sourceTargetKindWriteTargetKind

    The source to write; default project. One of project, preview_branch.

  • input.targetBranchIdID

    Required with the kind preview_branch.

Responses

mutation UpdateEval($projectReference: String!, $evalId: String!, $input: UpdateEvalInput!) {  updateEval(projectReference: $projectReference, evalId: $evalId, input: $input) {    id    name    description    targetKind    target    sourcePath    exportName    source    dataset {      kind      path      editable      dynamic    }    metrics {      name      family      severity      config      editable      dynamic    }    repetitions    tags    metadata    editableFields    dynamicFields    capabilities    editMode    sourceOnlyReasons  }}
{  "data": {    "updateEval": {      "id": "string",      "name": "string",      "description": "string",      "targetKind": "agent",      "target": "string",      "sourcePath": "string",      "exportName": "string",      "source": "string",      "dataset": {        "kind": "inline",        "path": "string",        "editable": false,        "dynamic": false      },      "metrics": [        {          "name": "string",          "family": "answer",          "severity": "gate",          "config": {},          "editable": false,          "dynamic": false        }      ],      "repetitions": 0,      "tags": [        "string"      ],      "metadata": {},      "editableFields": [        "name"      ],      "dynamicFields": [        "name"      ],      "capabilities": [        "string"      ],      "editMode": "structured",      "sourceOnlyReasons": [        "string"      ]    }  }}

The EvalSource! in data.updateEval.