Skip to content

ReadDatasetOptions

PromptScript API


Defined in: eval/src/dataset/read.ts:27

Options of readDataset.

Properties

contract?

optional contract?: Pick<PromptBundleV1, "inputs" | "output">

Defined in: eval/src/dataset/read.ts:33

Prompt contract, used to coerce CSV cells by input and output type


maxRows?

optional maxRows?: number

Defined in: eval/src/dataset/read.ts:31

Largest number of rows; default 1000


projectRoot

projectRoot: string

Defined in: eval/src/dataset/read.ts:29

Project root; error locations are relative to it


writtenPath?

optional writtenPath?: string

Defined in: eval/src/dataset/read.ts:39

Dataset path as written in the suite. Its extension picks the format, so a link named rows.csv reads as CSV whatever its target is called. Default: file.