This tool is designed for automatically generating and testing Python code based on a specific task. It leverages OpenAI's language models and a sequence of chains to produce code and corresponding tests.
- Python 3.6+
- Dependencies: aiohttp, aiosignal, annotated-types, langchain, openai, python-dotenv, etc. (Complete list in
requirements.txt
)
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables in a
.env
file (template in.env.example
).
python main.py --task="return a list of numbers" --language="python"