underlyingError
TypeScriptget underlyingError(): NativeErrorSwift declarationvar underlyingError: any ErrorThe underlying error that was thrown during a tool call.
struct · iOS 26.0+ · SDK 27.1
struct ToolCallErrorAn error that occurs while a language model is calling a tool.
get underlyingError(): NativeErrorSwift declarationvar underlyingError: any ErrorThe underlying error that was thrown during a tool call.
set underlyingError(value: NativeError)Swift declarationvar underlyingError: any ErrorThe underlying error that was thrown during a tool call.
get errorDescription(): (string) | nullSwift declarationvar errorDescription: String? { get }A string representation of the error description.
static init(tool: SDKHandle, underlyingError: NativeError): LanguageModelSession_ToolCallErrorSwift declarationinit(tool: any Tool, underlyingError: any Error)Creates a tool call error - Parameters: - tool: The tool that produced the error. - underlyingError: The underlying error that was thrown during a tool call.
get tool(): SDKHandleSwift declarationvar tool: any ToolThe tool that produced the error.
set tool(value: SDKHandle)Swift declarationvar tool: any ToolThe tool that produced the error.
No declarations were skipped in this snapshot.