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!requiredevalIdString!requiredinputSourceSelectorInputinput.sourceTargetKindSourceTargetKindThe source to read; default runtimeTargetKind, else project. One of
project,main_branch,environment,preview_branch.input.runtimeTargetKindRuntimeTargetKindUsed as the source to read when sourceTargetKind is omitted. One of
main_branch,environment,preview_branch.input.targetEnvironmentIdIDRequired with the kind environment.
input.targetBranchIdIDRequired 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.