# MASSE - Multi-Agent System for Structural Engineering

🏗️ AI-powered structural engineering workflow using multi-agent systems

## Quick Start

1. **Install**
```bash
pip install -r requirements.txt
```

2. **Setup API Key**
```bash
echo "OPENAI_API_KEY=your_key_here" > .env
```

3. **Run Analysis**
```bash
# GUI Interface
python main.py

## Key Features

- **Natural Language Input**: Describe structures in plain English
- **Multi-Agent System**: 9 specialized agents for engineering tasks
- **OpenSees Integration**: Advanced finite element analysis
- **Code Compliance**: NBCC, BCBC, CSA standards
- **Token Tracking**: Automatic LLM usage monitoring

## Analysis Workflow

1. **Project Manager**: Parse problem description and consolidate information
2. **Design Engineer**: Analyze structural capacities
3. **Loading Analyst**: Calculate loads
4. **Seismic Analyst**: Determine seismic parameters
5. **Dynamic Analyst**: Calculate seismic loads
6. **Structural Analyst**: Create structural model
7. **Model Engineer**: Run finite element analysis
8. **Verification Engineer**: Validate results
9. **Safety Manager**: Final safety assessment

## Configuration

Create `.env` file:
```
OPENAI_API_KEY=your_key_here
```

---

MASSE automates structural engineering workflow using specialized AI agents.