List the evals defined in the source of a project, a branch or an environment to find an eval to run or edit; returns every eval as one page with the source files that could not be read as evals. Requires project.evals.read.
Arguments
projectReferenceString!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 Evals($projectReference: String!) { evals(projectReference: $projectReference) { data { id name description targetKind target sourcePath exportName repetitions tags metadata editableFields dynamicFields capabilities } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } diagnostics { kind sourceKind sourcePath sourceId code message details } }}{ "data": { "evals": { "data": [ { "id": "string", "name": "string", "description": "string", "targetKind": "agent", "target": "string", "sourcePath": "string", "exportName": "string", "repetitions": 0, "tags": [ "string" ], "metadata": {}, "editableFields": [ "name" ], "dynamicFields": [ "name" ], "capabilities": [ "string" ] } ], "pageInfo": { "hasNextPage": false, "hasPreviousPage": false, "startCursor": "string", "endCursor": "string" }, "diagnostics": [ { "kind": "string", "sourceKind": "string", "sourcePath": "string", "sourceId": "string", "code": "string", "message": "string", "details": {} } ] } }}The EvalList! in data.evals.