Account Mentions Action

Implements

Constructors

Properties

Constructors

Properties

argsSchema: ZodObject<
    { userId: ZodString },
    "strip",
    ZodTypeAny,
    { userId: string },
    { userId: string },
> = AccountMentionsInput

Schema for validating action arguments

description: string = ACCOUNT_MENTIONS_PROMPT

A description of what the action does

func: (client: TwitterApi, args: { userId: string }) => Promise<string> = accountMentions

The function to execute for this action

Type declaration

    • (client: TwitterApi, args: { userId: string }): Promise<string>
    • Retrieves mentions for a specified Twitter (X) user.

      Parameters

      • client: TwitterApi

        The Twitter (X) client used to authenticate with.

      • args: { userId: string }

        The input arguments for the action.

      Returns Promise<string>

      A message indicating the success or failure of the mention retrieval.

name: string = "account_mentions"

The name of the action.