Skip to content

ToolDefinition

Source code in docs_src/capo_bedrock_agentcore_control/types/tool_definition.py
class ToolDefinition(TypedDict, closed=True):
    name: "str"
    """<p>The name of the tool. This name identifies the tool in the Model Context Protocol.</p>"""
    description: "str"
    """<p>The description of the tool. This description provides information about the purpose and usage of the tool.</p>"""
    input_schema: (
        "capo_bedrock_agentcore_control.types.schema_definition.SchemaDefinition"
    )
    """<p>The input schema for the tool. This schema defines the structure of the input that the tool accepts.</p>"""
    output_schema: NotRequired[
        "capo_bedrock_agentcore_control.types.schema_definition.SchemaDefinition"
    ]
    """<p>The output schema for the tool. This schema defines the structure of the output that the tool produces.</p>"""

description instance-attribute

description: str

The description of the tool. This description provides information about the purpose and usage of the tool.

input_schema instance-attribute

input_schema: SchemaDefinition

The input schema for the tool. This schema defines the structure of the input that the tool accepts.

name instance-attribute

name: str

The name of the tool. This name identifies the tool in the Model Context Protocol.

output_schema instance-attribute

output_schema: NotRequired[SchemaDefinition]

The output schema for the tool. This schema defines the structure of the output that the tool produces.