Skip to content

ContentBlock

Source code in docs_src/capo_bedrock_agentcore/types/content_block.py
class ContentBlock(TypedDict, closed=True):
    type: "capo_bedrock_agentcore.types.content_block_type.ContentBlockType"
    """<p>The type of content in the block.</p>"""
    text: NotRequired["str"]
    """<p>The text content of the block.</p>"""
    data: NotRequired["bytes"]
    """<p>The binary data content of the block.</p>"""
    mime_type: NotRequired["str"]
    """<p>The MIME type of the content.</p>"""
    uri: NotRequired["str"]
    """<p>The URI of the content.</p>"""
    name: NotRequired["str"]
    """<p>The name of the content block.</p>"""
    description: NotRequired["str"]
    """<p>The description of the content block.</p>"""
    size: NotRequired["int"]
    """<p>The size of the content in bytes.</p>"""
    resource: NotRequired[
        "capo_bedrock_agentcore.types.resource_content.ResourceContent"
    ]
    """<p>The resource associated with the content block.</p>"""

data instance-attribute

data: NotRequired[bytes]

The binary data content of the block.

description instance-attribute

description: NotRequired[str]

The description of the content block.

mime_type instance-attribute

mime_type: NotRequired[str]

The MIME type of the content.

name instance-attribute

name: NotRequired[str]

The name of the content block.

resource instance-attribute

resource: NotRequired[ResourceContent]

The resource associated with the content block.

size instance-attribute

size: NotRequired[int]

The size of the content in bytes.

text instance-attribute

text: NotRequired[str]

The text content of the block.

type instance-attribute

The type of content in the block.

uri instance-attribute

uri: NotRequired[str]

The URI of the content.