UNPKG

sei-agent-kit

Version:

A package for building AI agents on the SEI blockchain

23 lines 876 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SeiCitrexWithdrawTool = void 0; const tools_1 = require("langchain/tools"); const zod_1 = require("zod"); const CitrexWithdrawInputSchema = zod_1.z.object({ amount: zod_1.z.string().min(1), }); class SeiCitrexWithdrawTool extends tools_1.StructuredTool { constructor(seiKit) { super(); this.seiKit = seiKit; this.name = "citrex_withdraw"; this.description = "Withdraws USDC tokens from the Citrex Protocol. Returns a success flag and transaction hash if the withdrawal was successful."; this.schema = CitrexWithdrawInputSchema; } async _call(input) { const { amount } = input; return this.seiKit.citrexWithdraw(amount); } } exports.SeiCitrexWithdrawTool = SeiCitrexWithdrawTool; //# sourceMappingURL=withdraw.js.map