UNPKG

sei-agent-kit

Version:

A package for building AI agents on the SEI blockchain

20 lines 667 B
import { StructuredTool } from "langchain/tools"; import { z } from "zod"; const CitrexDepositInputSchema = z.object({ amount: z.string().min(1), }); export class SeiCitrexDepositTool extends StructuredTool { seiKit; name = "citrex_deposit"; description = "Deposits USDC tokens into the Citrex Protocol. Returns a success flag and transaction hash if the deposit was successful."; schema = CitrexDepositInputSchema; constructor(seiKit) { super(); this.seiKit = seiKit; } async _call(input) { const { amount } = input; return this.seiKit.citrexDeposit(amount); } } //# sourceMappingURL=deposit.js.map