Skip to content

Bedrock Agent  >  Structures  >  ToolSpecification

ToolSpecification

Structure Class

ToolSpecification dataclass

Contains a specification for a tool. For more information, see Use a tool to complete an Amazon Bedrock model response.

Attributes

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

The description of the tool.

input_schema instance-attribute
input_schema: ToolInputSchema

The input schema for the tool.

name instance-attribute
name: str

The name of the tool.

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

Whether to enforce strict JSON schema adherence for the tool input