Twitter Agentkit

Constructors

Methods

Constructors

  • Initializes a new instance of TwitterAgentkit with the provided options. If no options are provided, it attempts to load the required environment variables.

    Parameters

    • Optionaloptions: {
          accessToken: string;
          accessTokenSecret: string;
          apiKey: string;
          apiSecret: string;
      }

      Optional. The configuration options for the TwitterAgentkit.

    Returns TwitterAgentkit

    An error if the provided options are invalid or if the environment variables cannot be loaded.

Methods

  • Validates the provided options for the TwitterAgentkit.

    Parameters

    • options: {
          accessToken: string;
          accessTokenSecret: string;
          apiKey: string;
          apiSecret: string;
      }

      The options to validate.

    Returns boolean

    True if the options are valid, otherwise false.