Skip to content

ToolUseBlock

Source code in docs_src/capo_bedrock_runtime/types/tool_use_block.py
class ToolUseBlock(TypedDict, closed=True):
    tool_use_id: "capo_bedrock_runtime.types.tool_use_id.ToolUseId"
    """<p>The ID for the tool request.</p>"""
    name: "capo_bedrock_runtime.types.tool_name.ToolName"
    """<p>The name of the tool that the model wants to use.</p>"""
    input: "object"
    """<p>The input to pass to the tool. </p>"""
    type: NotRequired["capo_bedrock_runtime.types.tool_use_type.ToolUseType"]
    """<p>The type for the tool request.</p>"""

input instance-attribute

input: object

The input to pass to the tool.

name instance-attribute

name: ToolName

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

tool_use_id instance-attribute

tool_use_id: ToolUseId

The ID for the tool request.

type instance-attribute

type: NotRequired[ToolUseType]

The type for the tool request.