UNPKG

@suiware/ai-tools

Version:

Pluggable tools for Vercel AI SDK which allow AI assistants to interact with Sui Network and perform various actions.

29 lines (26 loc) 656 B
import * as ai from 'ai'; import z from 'zod'; declare const suiSwapTool: ai.Tool<z.ZodObject<{ amount: z.ZodNumber; sourceCoin: z.ZodEffects<z.ZodString, string, string>; targetCoin: z.ZodEffects<z.ZodString, string, string>; }, "strip", z.ZodTypeAny, { amount: number; sourceCoin: string; targetCoin: string; }, { amount: number; sourceCoin: string; targetCoin: string; }>, { digest: any; }> & { execute: (args: { amount: number; sourceCoin: string; targetCoin: string; }, options: ai.ToolExecutionOptions) => PromiseLike<{ digest: any; }>; }; export { suiSwapTool };