effect-io-ai

Package: @effect/ai
Module: Tool

Tool.Failure

A utility type to extract the type of the tool call result when it fails.

Signature

type Failure<T> = T extends Tool<
  infer _Name,
  infer _Config,
  infer _Requirements
> ? Schema.Schema.Type<_Config["failure"]>
  : never

Source

Since v1.0.0