Usage
ToolResultBlock(tool_use_id, content = NULL, is_error = NULL)
Arguments
- tool_use_id
Character. ID of the corresponding tool use.
- content
Character, list, or NULL. Tool result content.
- is_error
Logical or NULL. Whether this is an error result.
Value
Object of class ToolResultBlock.
Examples
blk <- ToolResultBlock("tool1", content = "file contents", is_error = FALSE)
blk$tool_use_id
#> [1] "tool1"