Skip to content

GuardrailContentBlock module-attribute

GuardrailContentBlock: TypeAlias = (
    GuardrailContentBlockTextMember
    | GuardrailContentBlockImageMember
    | UnknownUnionMember
)

GuardrailContentBlockTextMember

Source code in docs_src/capo_bedrock_runtime/types/guardrail_content_block.py
class GuardrailContentBlockTextMember(TypedDict, closed=True):
    text: "capo_bedrock_runtime.types.guardrail_text_block.GuardrailTextBlock"

text instance-attribute

GuardrailContentBlockImageMember

Source code in docs_src/capo_bedrock_runtime/types/guardrail_content_block.py
class GuardrailContentBlockImageMember(TypedDict, closed=True):
    image: "capo_bedrock_runtime.types.guardrail_image_block.GuardrailImageBlock"

image instance-attribute