effect-io-ai

Package: @effect/ai
Module: Tool

Tool.SuccessEncoded

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

Signature

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

Source

Since v1.0.0