MCPcopy
hub / github.com/promptfoo/promptfoo / buildSafeJsonPath

Function buildSafeJsonPath

src/models/eval.ts:116–118  ·  view source on GitHub ↗
(field: string)

Source from the content-addressed store, hash-verified

114 * Drizzle's `sql` templates as a value, never as raw SQL.
115 */
116export function buildSafeJsonPath(field: string): string {
117 return `$."${escapeJsonPathKey(field)}"`;
118}
119
120/**
121 * Represents a filter condition with its associated logic operator.

Callers 2

eval.test.tsFile · 0.90

Calls 1

escapeJsonPathKeyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…