This file contains the definition of custom agents. To create a Agent, you need to define the following:
-
Role: The role of the agent.
-
Backstory: The backstory of the agent.
-
Goal: The goal of the agent.
-
Tools: The tools that the agent has access to (optional).
-
Allow Delegation: Whether the agent can delegate tasks to other agents(optional).
This file contains the definition of custom tasks. To Create a task, you need to define the following :
-
description: A string that describes the task.
-
agent: An agent object that will be assigned to the task.
-
expected_output: The expected output of the task.
This is the main file that you will use to run your custom crew. To create a Crew , you need to define Agent ,Task and following Parameters:
-
Agent: List of agents that you want to include in the crew.
-
Task: List of tasks that you want to include in the crew.
-
verbose: If True, print the output of each task.(default is False).
-
debug: If True, print the debug logs.(default is False).
This project uses Poetry for dependency management. To set up:
-
Install Poetry
curl -sSL https://install.python-poetry.org | python3 -
-
Install dependencies
cd /path/to/project poetry install
-
Set up environment variables
cp .env.example .env # Edit .env with your API keys
-
Run the project
poetry run python main.py
.
├── README.md
├── pyproject.toml # Poetry configuration
├── .env # Environment variables (not in git)
├── .gitignore
├── main.py # Main application entry point
├── agents.py # Agent definitions
├── tasks.py # Task definitions
└── tools/ # Custom tools directory
└── scraping_tools.py # Web scraping tools
# Générateur de Lettres de Motivation pour Parcoursup
## Vue d'ensemble
Ce projet offre un système d'aide à la rédaction de lettres de motivation personnalisées pour Parcoursup, utilisant l'IA générative (Google Gemini API).
### Fonctionnalités
- Récupération automatique d'informations depuis Parcoursup
- Analyse des sites des établissements
- Entretien guidé pour recueillir votre profil
- Génération de deux versions de lettres de motivation (formelle et créative)
- Fusion intelligente des versions pour une lettre optimale
## Installation
Plusieurs options s'offrent à vous pour installer le projet :
### 1. Installation automatisée (recommandée)
```bash
# Rendre le script exécutable
chmod +x install.sh
# Lancer l'installation
./install.sh
# Installer les dépendances avec Poetry
poetry install
# OU installer les dépendances avec pip
pip install -r requirements.txt
Pour lancer l'application, vous pouvez utiliser l'une des méthodes suivantes :
# Méthode 1 (recommandée si vous utilisez Poetry)
./run.sh
# Méthode 2
poetry run python launcher.py
# Méthode 3 (si vous n'utilisez pas Poetry)
python launcher.py
L'application vous demandera :
- L'URL de la formation Parcoursup
- L'URL du site de l'établissement
- Des informations sur votre profil (ou vous proposera d'utiliser des réponses prédéfinies)
À la fin, une lettre de motivation personnalisée sera générée et pourra être sauvegardée.
Assurez-vous que votre fichier .env
contient une clé API Google valide :