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