@suiware/ai-tools
Version:
Pluggable tools for Vercel AI SDK which allow AI assistants to interact with Sui Network and perform various actions.
19 lines (17 loc) • 508 B
JavaScript
import { __async, SuiService } from './chunk-UXHRSDY6.mjs';
import { tool } from 'ai';
import z from 'zod';
var suiAddressTool = tool({
description: "Get my Sui address",
parameters: z.object({}),
execute: () => __async(void 0, null, function* () {
const suiService = SuiService.getInstance();
const address = suiService.getAddress();
return {
address
};
})
});
export { suiAddressTool };
//# sourceMappingURL=chunk-5LHFGOJF.mjs.map
//# sourceMappingURL=chunk-5LHFGOJF.mjs.map