Skip to content

ToolResultContentBlock

Union Type

ToolResultContentBlock module-attribute

The tool result content block. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

Union Member Types

ToolResultContentBlockJson dataclass

Bases: _SerdeShape

A tool result that is JSON format data.

Attributes

value instance-attribute
value: Document

ToolResultContentBlockText dataclass

Bases: _SerdeShape

A tool result that is text.

Attributes

value instance-attribute
value: str

ToolResultContentBlockImage dataclass

Bases: _SerdeShape

A tool result that is an image.

Note

This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 models.

Attributes

value instance-attribute
value: ImageBlock

ToolResultContentBlockDocument dataclass

Bases: _SerdeShape

A tool result that is a document.

Attributes

value instance-attribute

ToolResultContentBlockVideo dataclass

Bases: _SerdeShape

A tool result that is video.

Attributes

value instance-attribute
value: VideoBlock

ToolResultContentBlockSearchResult dataclass

Bases: _SerdeShape

A tool result that is a search result.

Attributes

value instance-attribute

ToolResultContentBlockUnknown dataclass

Bases: _SerdeShape

Represents an unknown variant. If you receive this value, you will need to update your library to receive the parsed value. This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str