Skip to main content

FAME Framework (also known as Full AI Meta Engine) is an AI agent framework designed to simulate human-like interactions and content creation on social media platforms, specifically Twitter. It can generate content including images, text, and videos that reflect the agent's personality, knowledge, and current mood. 🎨📝

Project description

FAME Framework 🚀

FAME Framework (also known as Full AI Meta Engine) is an AI agent framework designed to simulate human-like interactions and content creation on social media platforms, specifically Twitter. It can generate content including images, text, and videos that reflect the agent's personality, knowledge, and current mood. 🎨📝

The project consists of several modules that handle different aspects of the agent's behavior:

  • Facets of Personality: Defined by traits, interests, communication style, etc. 🌈
  • Abilities and Knowledge: Expertise in specific fields, skills, and experience level. 🎓
  • Mood and Emotions: Current emotional state and intensity. 😃😢
  • Environment and Execution: Scheduling of posts and integration with Twitter. 📅🐦

Installation

Install the package using pip:

pip install fame-ai

Quick Start

  1. Create a .env file with your API keys:
# Twitter/X API Credentials
X_CONSUMER_KEY=your_consumer_key_here
X_CONSUMER_SECRET=your_consumer_secret_here
X_ACCESS_TOKEN=your_access_token_here
X_ACCESS_TOKEN_SECRET=your_access_token_secret_here

# AI Service API Keys
REPLICATE_API_KEY=your_replicate_key_here
OPENROUTER_API_KEY=your_openrouter_key_here
  1. Create a profile image for your agent in a profiles directory:
mkdir profiles
# Add your agent's profile image as profiles/your_image.jpg
  1. Basic usage example:
from fame.agent import Agent

# Initialize agent with personality
agent = Agent(
    env_file=".env",
    facets_of_personality=(
        "Bonnie is a friendly and cheerful Korean girl who likes dancing "
        "and studying in high school"
    ),
    abilities_knowledge=(
        "She has strong dancing skills and high school level knowledge "
        "in the United States"
    ),
    mood_emotions="generally happy but sometimes gets stressed about exams",
    environment_execution=[],  # Empty list for no scheduling
    profile_image_path="profiles/bonnie.jpg",
)

# Post a simple text tweet
text_result = agent.post_tweet(
    instruction="Share your excitement about an upcoming dance performance"
)

# Post a tweet with face-swapped image
image_result = agent.post_image_tweet(
    prompt="",  # Will be generated based on personality
    tweet_text="",  # Will be generated based on image
    use_face_swap=True,  # Enable face swapping
)

Features

  • 🤖 Personality-driven content generation
  • 🎭 Face swapping with profile images
  • 📝 Natural text generation
  • 🖼️ AI image generation
  • 📅 Scheduled posting (optional)
  • 🔄 Twitter/X API integration

Requirements

  • Python 3.8+
  • Twitter/X Developer Account with API access
  • Replicate API key
  • OpenRouter API key

Documentation

For more detailed examples and API documentation, visit our documentation site.

Contributing

We welcome contributions! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fame_ai-0.0.2.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fame_ai-0.0.2-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file fame_ai-0.0.2.tar.gz.

File metadata

  • Download URL: fame_ai-0.0.2.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for fame_ai-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ee2051588b0e010e10af46c8122cd3c6c8779d4a6281cc7b3becd1ecc3ecd0f9
MD5 e07e8fd56a15f75d456ce12561a58dc0
BLAKE2b-256 2b0c931d643c25f44989c2ccb048c6ac62095f54041022a34b3f0671c7ffa958

See more details on using hashes here.

File details

Details for the file fame_ai-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: fame_ai-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for fame_ai-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04b9a070f55669e6da4ca65a195a3e78a1ea3aac187142a7409b6735019dc649
MD5 e46bc52ba924a6350f9fc7b037a0d37d
BLAKE2b-256 602984a32284724bf7ee9fc397dd60bd4af1014b0482ed3dabe5c5d0c69eb3fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page