Skip to content

Use autogen to read a given C++ file and convert it to python.

Notifications You must be signed in to change notification settings

zagganoth/cpp_to_python_autogen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run instructions

From a terminal, run py main.py (make sure you have autogen installed as a lib through pip, replace 'py' with the appropriate python alias on your system)

Goal:

Convert C++ code to equivalent python using a series of autonomous agents

Agents Used:

  • User proxy
    • This agent executes code, orchestrates nested chats, and responds with "TERMINATE" otherwise
  • Coder
    • This agent is tasked with for generating python code to read a specified file
  • CPP_Describer
    • This agent converts C++ code into a series of detailed steps that the code executes
  • CPP_Reviewer
    • This agent reads both C++ code and the description provided by CPP_Describer, then provides feedback to CPP_Describer to better describe the output
  • Python_Coder:
    • This agent receives both the description and original C++ code and produces equivalent python code
  • Python_Reviewer
    • This agent reviews output from Python_Coder to make sure it works and is well designed

About

Use autogen to read a given C++ file and convert it to python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published