Skip to content

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.

new GuardContentBlock(data): GuardContentBlock;

Defined in: src/types/messages.ts:577

ParameterType
dataGuardContentBlockData

GuardContentBlock

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.

GuardContentBlockData.text


readonly optional image: GuardContentImage;

Defined in: src/types/messages.ts:575

Image content with evaluation qualifiers.

GuardContentBlockData.image