Skip to content

ToolUseBlockDict

Dictionary Type

ToolUseBlockDict

Bases: TypedDict

Dictionary form of ToolUseBlock.

Attributes

input instance-attribute
input: Required[Document]

The input to pass to the tool.

name instance-attribute
name: Required[str]

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

tool_use_id instance-attribute
tool_use_id: Required[str]

The ID for the tool request.

type instance-attribute
type: str | None

The type for the tool request.