Contents

init(tool:underlyingError:)

Creates a tool call error

Declaration

init(tool: any Tool, underlyingError: any Error)

Parameters

  • tool:

    The tool that produced the error.

  • underlyingError:

    The underlying error that was thrown during a tool call.