GuardContentBlock
Defined in: src/types/messages.ts:561
Guard content block for guardrail evaluation. Marks content that should be evaluated by guardrails for safety, grounding, or other policies. Can be used in both message content and system prompts.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new GuardContentBlock(data): GuardContentBlock;Defined in: src/types/messages.ts:577
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | GuardContentBlockData |
Returns
Section titled “Returns”GuardContentBlock
Properties
Section titled “Properties”readonly type: "guardContentBlock";Defined in: src/types/messages.ts:565
Discriminator for guard content.
readonly optional text: GuardContentText;Defined in: src/types/messages.ts:570
Text content with evaluation qualifiers.
Implementation of
Section titled “Implementation of”image?
Section titled “image?”readonly optional image: GuardContentImage;Defined in: src/types/messages.ts:575
Image content with evaluation qualifiers.