Post Tweet Reply Action

Implements

Constructors

Properties

Constructors

Properties

argsSchema: ZodObject<
    { tweetId: ZodString; tweetReply: ZodString },
    "strip",
    ZodTypeAny,
    { tweetId: string; tweetReply: string },
    { tweetId: string; tweetReply: string },
> = PostTweetReplyInput

Schema for validating action arguments

description: string = POST_TWEET_REPLY_PROMPT

A description of what the action does

func: (
    client: TwitterApi,
    args: { tweetId: string; tweetReply: string },
) => Promise<string> = postTweet

The function to execute for this action

Type declaration

    • (
          client: TwitterApi,
          args: { tweetId: string; tweetReply: string },
      ): Promise<string>
    • Posts a reply to a specified tweet on Twitter (X).

      Parameters

      • client: TwitterApi

        The Twitter (X) client used to authenticate with.

      • args: { tweetId: string; tweetReply: string }

        The input arguments for the action.

      Returns Promise<string>

      A message indicating the success or failure of the reply posting.

name: string = "post_tweet_reply"

The name of the action.