effect-io-ai

Package: @effect/ai
Module: Tool

Tool.Success

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

Signature

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

Source

Since v1.0.0