Skip to contents

Safely get toolcall execution status instead of using direct @ access.

Usage

sn_get_toolcall_status(tool_call)

Arguments

tool_call

ToolCall object

Value

Character. Execution status

Examples

if (FALSE) { # \dontrun{
# Instead of: tool_call@status
status <- sn_get_toolcall_status(tool_call)
if (status == "success") {
  # Processing completed successfully
}
} # }