effect-io-ai

Package: @effect/ai
Module: Tool

Tool.ResultEncoded

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

Signature

type ResultEncoded<T> = T extends Tool<
  infer _Name,
  infer _Config,
  infer _Requirements
> ? SuccessEncoded<T> | FailureEncoded<T>
  : never

Source

Since v1.0.0