ModelRedactionEvent
Defined in: src/models/streaming.ts:344
Event emitted when guardrails block content and trigger redaction.
Implements
Section titled “Implements”Properties
Section titled “Properties”readonly type: "modelRedactionEvent";Defined in: src/models/streaming.ts:348
Discriminator for redact events.
Implementation of
Section titled “Implementation of”ModelRedactionEventData.typeinputRedaction?
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.inputRedactionoutputRedaction?
Section titled “outputRedaction?”readonly optional outputRedaction: RedactOutputContent;Defined in: src/models/streaming.ts:358
Output redaction information (when output is blocked).
Implementation of
Section titled “Implementation of”ModelRedactionEventData.outputRedaction