sei-agent-kit
Version:
A package for building AI agents on the SEI blockchain
23 lines (21 loc) • 906 B
JavaScript
import { TwitterAccountDetailsSchema } from "../../tools";
import { StructuredTool } from "langchain/tools";
export class SeiGetAccountDetailsTool extends StructuredTool {
seiKit;
name = "get_account_details";
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`;
schema = TwitterAccountDetailsSchema;
constructor(seiKit) {
super();
this.seiKit = seiKit;
}
async _call() {
return this.seiKit.getAccountDetails();
}
}
//# sourceMappingURL=getAccountDetails.js.map