MCPcopy
hub / github.com/promptfoo/promptfoo / createEvalWithPrompts

Function createEvalWithPrompts

test/util/databaseStandalone.test.ts:56–60  ·  view source on GitHub ↗
(config: Partial<Parameters<typeof Eval.create>[0]>)

Source from the content-addressed store, hash-verified

54END`;
55
56async function createEvalWithPrompts(config: Partial<Parameters<typeof Eval.create>[0]>) {
57 return Eval.create(config as Parameters<typeof Eval.create>[0], renderedPrompts, {
58 completedPrompts: [completedPrompt],
59 });
60}
61
62async function resetEvalTables() {
63 const db = await getDb();

Callers 1

Calls 1

createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…