ToolResult

A tool-result content block linking back to its tool use via tool_use_id.

Usage

Source

ToolResult(
    *, tool_use_id, content=(lambda: [])(), is_error=False, is_async=False
)

Parameter Attributes

tool_use_id: str
content: list[Any] | str = (lambda: [])()
is_error: bool = False
is_async: bool = False