Skip to content

Bedrock Runtime  >  Structures  >  ToolResultBlock

ToolResultBlock

Structure Class

ToolResultBlock dataclass

A tool result block that contains the results for a tool request that the model previously made. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

Attributes

content instance-attribute
content: list[ToolResultContentBlock]

The content for tool result content block.

status class-attribute instance-attribute
status: ToolResultStatus | None = None

The status for the tool result content block.

Note

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

tool_use_id instance-attribute
tool_use_id: str

The ID of the tool request that this is the result for.

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

The type for the tool result content block.