Skip to content

ToolSpecification

Structure Class

ToolSpecification dataclass

Bases: _SerdeShape

The specification for the tool. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

Attributes

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

The description for the tool.

input_schema instance-attribute
input_schema: ToolInputSchema

The input schema for the tool in JSON format.

name instance-attribute
name: str

The name for the tool.

strict class-attribute instance-attribute
strict: bool | None = ...

Flag to enable structured output enforcement on a tool usage response.