effect-io-ai

Package: @effect/ai
Module: Tool

Tool.Result

A utility type to extract the type of the tool call result whether it succeeds or fails.

Signature

type Result<T> = T extends Tool<
  infer _Name,
  infer _Config,
  infer _Requirements
> ? Success<T> | Failure<T>
  : never

Source

Since v1.0.0