Skip to content

GuardrailImageBlock

Structure Class

GuardrailImageBlock dataclass

Bases: _SerdeShape

Contain an image which user wants guarded. This block is accepted by the guardrails independent API.

Attributes

format instance-attribute
format: str

The format details for the file type of the image blocked by the guardrail.

source instance-attribute

The image source (image bytes) details of the image blocked by the guardrail.