This project simulates a papal conclave using LLMs to simulate cardinal behavior. Each cardinal is simulated by an LLM that takes into account:
- The cardinal's biographical information
- Their voting history
- Results from previous rounds
- Political leanings (liberal vs conservative)
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Create a
.envfile with your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
cardinal.py: Defines the Cardinal class and voting logicconclave.py: Main simulation orchestratordata/: Directory containing cardinal bios and voting historyutils.py: Utility functions for data handling