def get_mentions() -> str | None:
    """Gets the most recent mention.

    Args:
        api (tweepy.API): The tweepy API object.

    Returns:
        str | None: The most recent mention.
    """

    _tweets = plugin.api.mentions_timeline(tweet_mode="extended")

    for tweet in _tweets:
        return (
            f"@{tweet.user.screen_name} Replied: {tweet.full_text}"
            f" Tweet ID: {tweet.id}"
        )  # Returns most recent mention
Gets the most recent mention.

    Args:
        api (tweepy.API): The tweepy API object.

    Returns:
        str | None: The most recent mention.
    
src/autogpt_plugins/twitter/twitter.py