ReadonlytypeDiscriminator for guard content.
Optional ReadonlytextText content with evaluation qualifiers.
Optional ReadonlyimageImage content with evaluation qualifiers.
Serializes the GuardContentBlock to a JSON-compatible ContentBlockData object. Called automatically by JSON.stringify(). Uint8Array image bytes are encoded as base64 string.
StaticfromCreates a GuardContentBlock instance from its wrapped data format. Base64-encoded image bytes are decoded back to Uint8Array.
Wrapped GuardContentBlockData to deserialize (accepts both string and Uint8Array for image bytes)
GuardContentBlock instance
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.