UNPKG

sei-agent-kit

Version:

A package for building AI agents on the SEI blockchain

26 lines (24 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SeiGetAccountMentionsTool = void 0; const tools_1 = require("../../tools"); const tools_2 = require("langchain/tools"); class SeiGetAccountMentionsTool extends tools_2.StructuredTool { constructor(seiKit) { super(); this.seiKit = seiKit; this.name = "get_account_mentions"; this.description = ` This tool will return mentions for the specified Twitter (X) user id. A successful response will return a message with the API response as a JSON payload: {"data": [{"id": "1857479287504584856", "text": "@CDPAgentKit reply"}]} A failure response will return a message with the Twitter API request error: Error retrieving user mentions: 429 Too Many Requests`; this.schema = tools_1.TwitterAccountMentionsSchema; } async _call(args) { return this.seiKit.getAccountMentions(args); } } exports.SeiGetAccountMentionsTool = SeiGetAccountMentionsTool; //# sourceMappingURL=getAccountMentions.js.map