Skip to main content
GET
Read eval source

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required

Project slug, UUID, or domain that identifies the project.

eval_id
string
required
Minimum string length: 1

Query Parameters

source_target_kind
string

Source to use: project or preview_branch. Defaults to project.

target_branch_id
string<uuid> | null

Preview branch to use when the target kind is preview_branch.

Response

Eval source document

kind
enum<string>
required
Available options:
eval-source-document
id
string
required
name
string
required
target
string
required
source
object
required
dataset
object
required
metrics
object[]
required
repetitions
integer
required
tags
string[]
required
metadata
object
required
capabilities
enum<string>[]
required
Available options:
project.evals.read,
project.evals.write,
project.evals.run
target_kind
enum<string>
required

What the eval runs against: always agent.

Available options:
agent
source_path
string
required

Source file path where the eval definition lives.

export_name
string
required

Name of the export that declares the eval in its source file.

editable_fields
enum<string>[]
required

Fields that update_eval can change.

Available options:
name,
description,
target,
dataset,
repetitions,
tags,
metadata,
metrics,
check
dynamic_fields
enum<string>[]
required

Fields computed in source, which update_eval cannot change.

Available options:
name,
description,
target,
dataset,
repetitions,
tags,
metadata,
metrics,
check
edit_mode
enum<string>
required

Editing mode of the eval.

Available options:
structured,
source_only
source_only_reasons
string[]
required

Why the eval can only be edited as source.

description
string