UNPKG

sei-agent-kit

Version:

A package for building AI agents on the SEI blockchain

20 lines 677 B
import { StructuredTool } from "langchain/tools"; import { z } from "zod"; const CitrexWithdrawInputSchema = z.object({ amount: z.string().min(1), }); export class SeiCitrexWithdrawTool extends StructuredTool { seiKit; name = "citrex_withdraw"; description = "Withdraws USDC tokens from the Citrex Protocol. Returns a success flag and transaction hash if the withdrawal was successful."; schema = CitrexWithdrawInputSchema; constructor(seiKit) { super(); this.seiKit = seiKit; } async _call(input) { const { amount } = input; return this.seiKit.citrexWithdraw(amount); } } //# sourceMappingURL=withdraw.js.map