Skip to content

ToolResultContentBlockDict

Union Type

ToolResultContentBlockDict module-attribute

Dictionary form of ToolResultContentBlock, setting exactly one variant.

Union Member Types

ToolResultContentBlockJsonDict

Bases: TypedDict

Attributes

json instance-attribute
json: Document

A tool result that is JSON format data.

ToolResultContentBlockTextDict

Bases: TypedDict

Attributes

text instance-attribute
text: str

A tool result that is text.

ToolResultContentBlockImageDict

Bases: TypedDict

Attributes

image instance-attribute

A tool result that is an image.

Note

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

ToolResultContentBlockDocumentDict

Bases: TypedDict

Attributes

document instance-attribute

A tool result that is a document.

ToolResultContentBlockVideoDict

Bases: TypedDict

Attributes

video instance-attribute

A tool result that is video.

ToolResultContentBlockSearchResultDict

Bases: TypedDict

Attributes

search_result instance-attribute

A tool result that is a search result.