This project is a command-line-based Minimum Viable Product (MVP) for a College Essay Coach, an AI-powered conversational agent designed to help high school students brainstorm and structure their college application essays.
main.py: The main entry point to run the application.agent.py: Contains the core logic for the conversational agent.prompts.py: Stores the system prompts and initial questions for the agent.pyproject.toml: Configuration for Poetry..env.example: An example file for environment variables. You will need to create your own.envfile.
Follow these steps to set up and run the project on your local machine.
- Python 3.7+
- Poetry for package management
- An OpenAI API Key
-
Clone the repository (or set up the files as provided): Make sure you have all the project files (
main.py,agent.py,prompts.py,pyproject.toml). -
Install the dependencies: From the root of the project directory, run the following command. This will create a virtual environment and install all the necessary packages.
poetry install
-
Set up your environment variables: Create a file named
.envin the root of the project directory. Copy the contents of.env.exampleinto it and add your OpenAI API key:OPENAI_API_KEY="your-actual-openai-api-key"
Once you have completed the setup, you can run the application directly using Poetry. This command will execute the script within the project's virtual environment.
poetry run python main.pyThe conversational agent will start, and you can interact with it directly in your terminal.