Skip to content

Bedrock Runtime  >  Structures  >  ToolUseBlock

ToolUseBlock

Structure Class

ToolUseBlock dataclass

A tool use content block. Contains information about a tool that the model is requesting be run., The model uses the result from the tool to generate a response. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

Attributes

input instance-attribute
input: Document

The input to pass to the tool.

name instance-attribute
name: str

The name of the tool that the model wants to use.

tool_use_id instance-attribute
tool_use_id: str

The ID for the tool request.

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

The type for the tool request.