Skip to content

GuardrailContentBlockDict

Union Type

GuardrailContentBlockDict module-attribute

Dictionary form of GuardrailContentBlock, setting exactly one variant.

Union Member Types

GuardrailContentBlockTextDict

Bases: TypedDict

Attributes

text instance-attribute

Text within content block to be evaluated by the guardrail.

GuardrailContentBlockImageDict

Bases: TypedDict

Attributes

image instance-attribute

Image within guardrail content block to be evaluated by the guardrail.