hashbrown

ToolOptionsWithoutInput

API

ToolOptionsWithoutInput
@typeName
string
@typeResult
deps
DependencyList

Dependencies that should trigger tool recreation. The hook will automatically memoize the handler based on these dependencies, so you can safely pass anonymous functions.

description
string

The description of the tool. This helps the LLM understand its purpose.

handler
(abortSignal: AbortSignal) => Promise<Result>

The handler of the tool. This is what the LLM agent will call to execute the tool.

name
Name

The name of the tool.