ModelRedactionEvent
Defined in: src/models/streaming.ts:344
Event emitted when guardrails block content and trigger redaction.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ModelRedactionEvent(data): ModelRedactionEvent;Defined in: src/models/streaming.ts:360
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | ModelRedactionEventData |
Returns
Section titled “Returns”ModelRedactionEvent
Properties
Section titled “Properties”readonly type: "modelRedactionEvent";Defined in: src/models/streaming.ts:348
Discriminator for redact events.
Implementation of
Section titled “Implementation of”inputRedaction?
Section titled “inputRedaction?”readonly optional inputRedaction?: RedactInputContent;Defined in: src/models/streaming.ts:353
Input redaction information (when input is blocked).
Implementation of
Section titled “Implementation of”ModelRedactionEventData.inputRedaction
outputRedaction?
Section titled “outputRedaction?”readonly optional outputRedaction?: RedactOutputContent;Defined in: src/models/streaming.ts:358
Output redaction information (when output is blocked).