Skip to contents

Safely check if toolcall completed successfully instead of using direct @ access.

Usage

sn_is_toolcall_success(tool_call)

Arguments

tool_call

ToolCall object

Value

Logical. TRUE if successful

Examples

if (FALSE) { # \dontrun{
# Instead of: tool_call@status == "success"
if (sn_is_toolcall_success(tool_call)) {
  outputs <- sn_get_toolcall_outputs(tool_call)
  # Process the output files
}
} # }