# OnToolErrorCallback

interface OnToolErrorCallback : Callback

Callback invoked when a tool encounters an error.

## Types

Companion
Link copied to clipboard
object Companion

## Properties

name
Link copied to clipboard
open val name: String

The name of this callback, used for tracing and logging.

## Functions

call
Link copied to clipboard
abstract suspend fun call(context: ToolContext, tool: BaseTool, args: Map<String, Any>, error: Throwable): CallbackChoice<Unit, Map<String, Any>>

Callback executed when a tool call encounters an error.