MCPcopy Create free account
hub / github.com/promptfoo/promptfoo / readLocalCsvRows

Function readLocalCsvRows

src/util/testCaseReader.ts:312–315  ·  view source on GitHub ↗
(resolvedVarsPath: string)

Source from the content-addressed store, hash-verified

310}
311
312async function readLocalCsvRows(resolvedVarsPath: string): Promise<CsvRow[]> {
313 const fileContent = await fsPromises.readFile(resolvedVarsPath, 'utf-8');
314 return parseCsvRows(fileContent);
315}
316
317function parseCsvRows(fileContent: string): CsvRow[] {
318 const delimiter = getEnvString('PROMPTFOO_CSV_DELIMITER', ',');

Callers 1

Calls 1

parseCsvRowsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…