ToolResult
A tool-result content block linking back to its tool use via tool_use_id.
Usage
ToolResult(
*, tool_use_id, content=(lambda: [])(), is_error=False, is_async=False
)Parameter Attributes
tool_use_id: strcontent: list[Any] | str = (lambda: [])()is_error: bool = Falseis_async: bool = False