Skip to content

ToolSpecification

Source code in docs_src/capo_bedrock_runtime/types/tool_specification.py
class ToolSpecification(TypedDict, closed=True):
    name: "capo_bedrock_runtime.types.tool_name.ToolName"
    """<p>The name for the tool.</p>"""
    description: NotRequired[
        "capo_bedrock_runtime.types.non_empty_string.NonEmptyString"
    ]
    """<p>The description for the tool.</p>"""
    input_schema: "capo_bedrock_runtime.types.tool_input_schema.ToolInputSchema"
    """<p>The input schema for the tool in JSON format.</p>"""
    strict: NotRequired["bool"]
    """<p>Flag to enable structured output enforcement on a tool usage response.</p>"""

description instance-attribute

description: NotRequired[NonEmptyString]

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: ToolName

The name for the tool.

strict instance-attribute

strict: NotRequired[bool]

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