Skip to content

ToolResultBlock

Source code in docs_src/capo_bedrock_runtime/types/tool_result_block.py
class ToolResultBlock(TypedDict, closed=True):
    tool_use_id: "capo_bedrock_runtime.types.tool_use_id.ToolUseId"
    """<p>The ID of the tool request that this is the result for. </p>"""
    content: (
        "capo_bedrock_runtime.types.tool_result_content_blocks.ToolResultContentBlocks"
    )
    """<p>The content for tool result content block.</p>"""
    status: NotRequired[
        "capo_bedrock_runtime.types.tool_result_status.ToolResultStatus"
    ]
    """<p>The status for the tool result content block.</p> <note> <p>This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 models.</p> </note>"""
    type: NotRequired["str"]
    """<p>The type for the tool result content block.</p>"""

content instance-attribute

The content for tool result content block.

status instance-attribute

status: NotRequired[ToolResultStatus]

The status for the tool result content block.

This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 models.

tool_use_id instance-attribute

tool_use_id: ToolUseId

The ID of the tool request that this is the result for.

type instance-attribute

type: NotRequired[str]

The type for the tool result content block.