effect-io-ai

Package: @effect/ai
Module: Tool

Tool.SuccessSchema

A utility type to extract the schema for the return type of a tool call when the tool call succeeds.

Signature

type SuccessSchema<T> = T extends Tool<
  infer _Name,
  infer _Config,
  infer _Requirements
> ? _Config["success"]
  : never

Source

Since v1.0.0