UNPKG

@suiware/ai-tools

Version:

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

18 lines (16 loc) 551 B
import { SuiStakingService } from './chunk-EIQJRNDC.mjs'; import { __async } from './chunk-HFORSGSH.mjs'; import { tool } from 'ai'; import z from 'zod'; var suiUnstakeTool = tool({ description: "Unstake Sui", parameters: z.object({}), execute: () => __async(null, null, function* () { const suiStakingService = new SuiStakingService(); const digests = yield suiStakingService.unstake(); return { digests }; }) }); export { suiUnstakeTool }; //# sourceMappingURL=chunk-Q7CKNJ6I.mjs.map //# sourceMappingURL=chunk-Q7CKNJ6I.mjs.map