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