BeforeToolCallback

Callback invoked immediately before a tool is executed.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val name: String

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

Functions

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

Invoked before the tool is executed.