Skip to content

Bedrock Agentcore  >  Structures  >  ContentBlock

ContentBlock

Structure Class

ContentBlock dataclass

A block of content in a response.

Attributes

data class-attribute instance-attribute
data: bytes | None = None

The binary data content of the block.

description class-attribute instance-attribute
description: str | None = None

The description of the content block.

mime_type class-attribute instance-attribute
mime_type: str | None = None

The MIME type of the content.

name class-attribute instance-attribute
name: str | None = None

The name of the content block.

resource class-attribute instance-attribute
resource: ResourceContent | None = None

The resource associated with the content block.

size class-attribute instance-attribute
size: int | None = None

The size of the content in bytes.

text class-attribute instance-attribute
text: str | None = None

The text content of the block.

type instance-attribute

The type of content in the block.

uri class-attribute instance-attribute
uri: str | None = None

The URI of the content.