MCPcopy Index your code
hub / github.com/simstudioai/sim / transformUnit

Function transformUnit

apps/sim/lib/logs/execution/pii-redaction.ts:127–136  ·  view source on GitHub ↗
(
  key: keyof RedactablePayload,
  value: unknown,
  handle: (s: string) => string
)

Source from the content-addressed store, hash-verified

125}
126
127function transformUnit(
128 key: keyof RedactablePayload,
129 value: unknown,
130 handle: (s: string) => string
131): unknown {
132 if (key === 'traceSpans' && Array.isArray(value)) {
133 return value.map((span) => transformSpan(span, handle))
134 }
135 return transformStrings(value, handle)
136}
137
138/**
139 * Mask a batch of collected strings via Presidio. On a hard failure, either scrub

Callers 1

redactPIIFromExecutionFunction · 0.85

Calls 2

transformSpanFunction · 0.85
transformStringsFunction · 0.85

Tested by

no test coverage detected