UNPKG

@anthropic-ai/sdk

Version:

The official TypeScript library for the Anthropic API

7 lines 374 B
import { BetaToolResultContentBlockParam, BetaToolUnion } from "../../resources/beta.mjs"; export type Promisable<T> = T | Promise<T>; export type BetaRunnableTool<Input = any> = BetaToolUnion & { run: (args: Input) => Promisable<string | Array<BetaToolResultContentBlockParam>>; parse: (content: unknown) => Input; }; //# sourceMappingURL=BetaRunnableTool.d.mts.map