evalSource

Read the editable source behind one eval before changing it; returns the eval source document with its source text, edit mode and the reasons it can only be edited as source. Requires project.evals.read.

Arguments

  • projectReferenceString!required

  • evalIdString!required

  • inputWriteTargetInput

  • input.sourceTargetKindWriteTargetKind

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

  • input.targetBranchIdID

    Required with the kind preview_branch.

Responses

query EvalSource($projectReference: String!, $evalId: String!) {  evalSource(projectReference: $projectReference, evalId: $evalId) {    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": {    "evalSource": {      "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.evalSource.