Skip to content

ModelRedactionEvent

Defined in: src/models/streaming.ts:344

Event emitted when guardrails block content and trigger redaction.

new ModelRedactionEvent(data): ModelRedactionEvent;

Defined in: src/models/streaming.ts:360

ParameterType
dataModelRedactionEventData

ModelRedactionEvent

readonly type: "modelRedactionEvent";

Defined in: src/models/streaming.ts:348

Discriminator for redact events.

ModelRedactionEventData.type


readonly optional inputRedaction?: RedactInputContent;

Defined in: src/models/streaming.ts:353

Input redaction information (when input is blocked).

ModelRedactionEventData.inputRedaction


readonly optional outputRedaction?: RedactOutputContent;

Defined in: src/models/streaming.ts:358

Output redaction information (when output is blocked).

ModelRedactionEventData.outputRedaction