Skip to content

scanDatasetRow()

PromptScript API


scanDatasetRow(record, options): EvalFindingV1[]

Defined in: eval/src/dataset/scan.ts:129

Scan the string values of one row (inputs and expected) with the validator’s security rules (PS005, PS010, PS011, PS012, PS014) and the PII detectors. A finding names the rule, row id, path and line, never the rule message, which can quote the value. Rules listed in allow are downgraded to warnings, and they and PII under allowPii carry the suite’s reason.

Parameters

record

DatasetRecord

Row read by readDataset

options

ScanOptions

Dataset path, allowed patterns and the suite’s review decisions

Returns

EvalFindingV1[]

Findings in value order, rules before PII