Package: @effect/ai
Module: Tool
A utility type which represents the possible errors that can be raised by a tool call’s handler.
Signature
type HandlerError<T> = T extends Tool<
infer _Name,
infer _Config,
infer _Requirements
> ? _Config["failureMode"] extends "error" ? _Config["failure"]["Type"]
: never
: never
Since v1.0.0