sei-agent-kit
Version:
A package for building AI agents on the SEI blockchain
19 lines • 627 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SeiPostTweetTool = void 0;
const tools_1 = require("../../tools");
const tools_2 = require("langchain/tools");
class SeiPostTweetTool extends tools_2.StructuredTool {
constructor(seiKit) {
super();
this.seiKit = seiKit;
this.name = "post_tweet";
this.description = "Posts a tweet to Twitter";
this.schema = tools_1.TwitterPostTweetSchema;
}
async _call(args) {
return this.seiKit.postTweet(args);
}
}
exports.SeiPostTweetTool = SeiPostTweetTool;
//# sourceMappingURL=post.js.map