PromptShield logo PromptShield
API DocsType aliases

Detector()

Detector = (text, options, context) => ThreatReport[]

Defined in: types.ts:274

Detector function contract.

Detectors must be:

  • deterministic
  • side-effect free
  • synchronous

Parameters

text

string

options

ScanOptions

context

ScanContext

Returns

ThreatReport[]

On this page