Skip to content

This project uses GPT-4o-mini and LangGraph to generate superhero teams and stories through a multi-agent AI workflow. Agents collaborate to create characters, design plots, and adapt missions dynamically. Perfect for writers, game developers, and AI enthusiasts. πŸš€

Notifications You must be signed in to change notification settings

KaramSahoo/heroforge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ HeroForge

Welcome to HeroForge – an Agentic AI Workflow for generating and managing AI-powered content with structured automation. This project orchestrates AI agents to craft and validate dynamic narratives through modular workflows.

πŸ“‚ Project Structure

heroforge/
│── server/
β”‚   │── app.py          # Main Flask application
β”‚   │── agents/         # AI agent implementations
β”‚   │── blueprints/     # Flask blueprints for modular routes
β”‚   │── config/         # Configuration files
β”‚   │── database/       # Database models and queries
β”‚   │── helpers/        # Utility functions
β”‚   │── prompts/        # AI prompt templates
β”‚   │── utils/          # Loggers and schema definitions
β”‚   │── workflows/      # Agentic AI Workflow logic
β”‚   │── .env            # Environment variables (OpenAI API key, etc.)
β”‚   └── requirements.txt # Dependencies

⚑ Quick Setup

Follow these steps to set up and run the HeroForge server:

1️⃣ Clone the Repository

git clone https://github.com/KaramSahoo/heroforge.git
cd heroforge/server

2️⃣ Create a Virtual Environment & Install Dependencies

python3 -m venv venv
source venv/bin/activate   # On Windows use: venv\Scripts\activate
pip install -r requirements.txt

3️⃣ Set Up Environment Variables

Create a .env file inside server/ and add your OpenAI API Key:

OPENAI_API_KEY=your_openai_api_key_here

4️⃣ Run the Application

python app.py

The server should now be running at: http://127.0.0.1:8000 πŸš€

🎯 Using the API

πŸ”Ή Generate a Mission Story

Send a POST request to /generate with a JSON payload containing the mission field.

Example Request:

curl -X POST "http://127.0.0.1:8000/generate" \
     -H "Content-Type: application/json" \
     -d '{"mission": "Save the city from an alien invasion"}'

πŸ›  Features

  • Agentic AI Workflows: Automated pipelines to generate and manage AI-driven content.
  • Modular Flask Blueprints: Organized API structure for scalability.
  • Integrated Logging & Schemas: Improved debugging and structured data validation.
  • Dynamic AI Prompts: Optimized for context-aware responses.
  • Database-Backed Storage: Efficient query handling and data persistence.

πŸ— Future Enhancements

  • πŸ“Œ Expand multi-agent collaboration.
  • πŸš€ Optimize inference pipelines for real-time interactions.

πŸ’‘ Contributions Welcome! Open a PR or issue to help improve HeroForge. Happy coding! πŸ€–βœ¨

About

This project uses GPT-4o-mini and LangGraph to generate superhero teams and stories through a multi-agent AI workflow. Agents collaborate to create characters, design plots, and adapt missions dynamically. Perfect for writers, game developers, and AI enthusiasts. πŸš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published