sei-agent-kit
Version:
A package for building AI agents on the SEI blockchain
26 lines (24 loc) • 1.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SeiPostTweetReplyTool = void 0;
const tools_1 = require("../../tools");
const tools_2 = require("langchain/tools");
class SeiPostTweetReplyTool extends tools_2.StructuredTool {
constructor(seiKit) {
super();
this.seiKit = seiKit;
this.name = "post_tweet_reply";
this.description = `
This tool will post a tweet on Twitter. The tool takes the text of the tweet as input. Tweets can be maximum 280 characters.
A successful response will return a message with the API response as a JSON payload:
{"data": {"text": "hello, world!", "id": "0123456789012345678", "edit_history_tweet_ids": ["0123456789012345678"]}}
A failure response will return a message with the Twitter API request error:
You are not allowed to create a Tweet with duplicate content.`;
this.schema = tools_1.TwitterPostTweetReplySchema;
}
async _call(args) {
return this.seiKit.postTweetReply(args);
}
}
exports.SeiPostTweetReplyTool = SeiPostTweetReplyTool;
//# sourceMappingURL=postTweetReply.js.map