prediction is the authoritative BENIGN or MALICIOUS verdict. For malicious results, typed outcome constants on BlockResult provide optional detail for application routing.
The backend wire fields are prediction, primary_outcome, outcome_scores, detector_scores, and detector_counts. Handler functions such as continueNormally and redactAndSuppress in these examples belong to your application.
Prerequisites
Initialize the SDK client for your runtime and classify a boundary. The routing example below checks the TypeScript governance verdict. Python and Go also expose typed governance decisions in direct classification results. In effective Block mode, Python and Go raise blocking errors; TypeScript callers must enforce the returned verdict themselves.Outcome taxonomy
Continue only whenprediction is benign and no applicable governance policy blocks the request. For malicious results, route the primary outcome using this table. Block by default if the outcome is missing or unrecognized.
Route a TypeScript result
fw is the TypeScript client.