Skip to content

ImageBlock

Source code in docs_src/capo_bedrock_runtime/types/image_block.py
class ImageBlock(TypedDict, closed=True):
    format: "capo_bedrock_runtime.types.image_format.ImageFormat"
    """<p>The format of the image.</p>"""
    source: "capo_bedrock_runtime.types.image_source.ImageSource"
    """<p>The source for the image.</p>"""
    error: NotRequired["capo_bedrock_runtime.types.error_block.ErrorBlock"]
    """<p>Error information if the image block could not be processed or contains invalid data.</p>"""

error instance-attribute

error: NotRequired[ErrorBlock]

Error information if the image block could not be processed or contains invalid data.

format instance-attribute

format: ImageFormat

The format of the image.

source instance-attribute

source: ImageSource

The source for the image.