@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) • 503 B
JavaScript
import { __async, SuiService } from './chunk-HFORSGSH.mjs';
import { tool } from 'ai';
import z from 'zod';
var suiAddressTool = tool({
description: "Get Sui address",
parameters: z.object({}),
execute: () => __async(null, null, function* () {
const suiService = SuiService.getInstance();
const address = suiService.getAddress();
return {
address
};
})
});
export { suiAddressTool };
//# sourceMappingURL=chunk-RHB67JUP.mjs.map
//# sourceMappingURL=chunk-RHB67JUP.mjs.map