UNPKG

@suiware/ai-tools

Version:

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

20 lines (18 loc) 631 B
import { SuiStakingService } from './chunk-EIQJRNDC.mjs'; import { __async } from './chunk-HFORSGSH.mjs'; import { tool } from 'ai'; import z from 'zod'; var suiStakeTool = tool({ description: "Stake Sui", parameters: z.object({ amount: z.number().min(1).describe("The amount of SUI to stake") }), execute: (_0) => __async(null, [_0], function* ({ amount }) { const suiStakingService = new SuiStakingService(); const digest = yield suiStakingService.stake(amount); return { digest }; }) }); export { suiStakeTool }; //# sourceMappingURL=chunk-2UWKDBSM.mjs.map //# sourceMappingURL=chunk-2UWKDBSM.mjs.map