Skip to content

shanunited/JavaScript_to_Python_Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“œ JavaScript to Python Conversion Agent

πŸ“Œ Overview

This project automates the conversion of JavaScript code to Python using AI-powered agents. It reads JavaScript code from a file, translates it into Python using Groq's Llama 3, and validates the execution of the generated Python script. The workflow is implemented using LangGraph, ensuring structured execution with error handling and retries.

πŸ” Key Features

πŸš€ Automated Code Processing Reads JavaScript code from an input file. Uses Groq’s Llama 3 to generate equivalent Python code.

πŸ“ˆ Conversion & Execution Extracts only the valid Python code from the LLM response. Executes the generated Python script and validates the output. Retries up to 5 times before requiring human intervention.

πŸ” Error Handling & Debugging Handles incorrect or partial conversions. Provides detailed logs for debugging. Ensures seamless execution through an agent-based workflow.

πŸ›  Future Enhancements βœ… Support for More Complex JavaScript Syntax (Classes, ES6, Async/Await). βœ… Integration with Multiple AI Models (e.g., OpenAI, Gemini, Cohere). βœ… Enhance Code Optimization & Formatting Techniques. βœ… Develop a Web Interface for Interactive Code Conversion.

πŸ“¬ Contact For any questions or suggestions, feel free to reach out via LinkedIn or GitHub.

⭐ If you find this project useful, don't forget to star this repository! ⭐

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors