Package: @effect/ai
Module: Tool
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
Since v1.0.0