UNPKG

sei-agent-kit

Version:

A package for building AI agents on the SEI blockchain

26 lines (24 loc) 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SeiGetAccountDetailsTool = void 0; const tools_1 = require("../../tools"); const tools_2 = require("langchain/tools"); class SeiGetAccountDetailsTool extends tools_2.StructuredTool { constructor(seiKit) { super(); this.seiKit = seiKit; this.name = "get_account_details"; this.description = ` This tool will return account details for the currently authenticated Twitter (X) user context. A successful response will return a message with the api response as a json payload: {"data": {"id": "1853889445319331840", "name": "CDP AgentKit", "username": "CDPAgentKit"}} A failure response will return a message with a Twitter API request error: Error retrieving authenticated user account: 429 Too Many Requests`; this.schema = tools_1.TwitterAccountDetailsSchema; } async _call() { return this.seiKit.getAccountDetails(); } } exports.SeiGetAccountDetailsTool = SeiGetAccountDetailsTool; //# sourceMappingURL=getAccountDetails.js.map