effect-io-ai

Package: @effect/ai
Module: Tool

Tool.HandlerError

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

Source

Since v1.0.0