PromptShield logo PromptShield
API DocsType aliases

Detector()

Detector = (text, options) => ThreatReportWithoutLocation[]

Defined in: types.ts:343

Detector function contract.

Detectors must be:

  • deterministic
  • side-effect free
  • synchronous

Parameters

text

string

options

ScanOptions

Returns

ThreatReportWithoutLocation[]

On this page