eval

Read one eval definition by its ID to inspect its target, dataset, metrics and the fields that can be edited; returns the eval. Requires project.evals.read.

Arguments

  • projectReferenceString!required

  • evalIdString!required

  • inputSourceSelectorInput

  • input.sourceTargetKindSourceTargetKind

    The source to read; default runtimeTargetKind, else project. One of project, main_branch, environment, preview_branch.

  • input.runtimeTargetKindRuntimeTargetKind

    Used as the source to read when sourceTargetKind is omitted. One of main_branch, environment, preview_branch.

  • input.targetEnvironmentIdID

    Required with the kind environment.

  • input.targetBranchIdID

    Required with the kind preview_branch.

Responses

query Eval($projectReference: String!, $evalId: String!) {  eval(projectReference: $projectReference, evalId: $evalId) {    id    name    description    targetKind    target    sourcePath    exportName    dataset {      kind      path      editable      dynamic    }    metrics {      name      family      severity      config      editable      dynamic    }    repetitions    tags    metadata    editableFields    dynamicFields    capabilities  }}
{  "data": {    "eval": {      "id": "string",      "name": "string",      "description": "string",      "targetKind": "agent",      "target": "string",      "sourcePath": "string",      "exportName": "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"      ]    }  }}

The Eval! in data.eval.