UNPKG

@suiware/ai-tools

Version:

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

1 lines 814 B
{"version":3,"sources":["../src/ai/tools/suiAddressTool.ts"],"names":[],"mappings":";;;;AAIO,IAAM,iBAAiB,IAAK,CAAA;AAAA,EACjC,WAAa,EAAA,iBAAA;AAAA,EACb,UAAY,EAAA,CAAA,CAAE,MAAO,CAAA,EAAE,CAAA;AAAA,EACvB,SAAS,MAAY,OAAA,CAAA,IAAA,EAAA,IAAA,EAAA,aAAA;AACnB,IAAM,MAAA,UAAA,GAAa,WAAW,WAAY,EAAA;AAC1C,IAAM,MAAA,OAAA,GAAU,WAAW,UAAW,EAAA;AAEtC,IAAO,OAAA;AAAA,MACL;AAAA,KACF;AAAA,GACF;AACF,CAAC","file":"chunk-RHB67JUP.mjs","sourcesContent":["import { tool } from 'ai'\nimport z from 'zod'\nimport { SuiService } from '../../services/SuiService'\n\nexport const suiAddressTool = tool({\n description: 'Get Sui address',\n parameters: z.object({}),\n execute: async () => {\n const suiService = SuiService.getInstance()\n const address = suiService.getAddress()\n\n return {\n address,\n }\n },\n})\n"]}