Safely check if toolcall completed successfully instead of using direct @ access.
See also
Other accessor functions:
sn_get_installed_versions()
,
sn_get_tool()
,
sn_get_tool_commands()
,
sn_get_tool_name()
,
sn_get_tool_version()
,
sn_get_tool_versions()
,
sn_get_toolbox_tools()
,
sn_get_toolcall_outputs()
,
sn_get_toolcall_runtime()
,
sn_get_toolcall_status()
,
sn_is_tool_installed()
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
}
} # }