# โš™๏ธ Tools Required for MVP (Phases 1โ€“5) The system consists of a **Supervisor Agent** (central orchestrator) and several **specialized subagents**. Each tool corresponds to a specific capability needed for the single-candidate MVP flow โ€” from CV upload to interview scheduling. --- ## ๐Ÿง  **Supervisor Agent (Core Orchestrator)** ### **Role** Acts as the **central controller**: - Interfaces with HR (via UI or chat) - Handles reasoning, status reporting, and command interpretation - Orchestrates subagents (screening, Gmail, calendar) - Updates both the database and checklist after each atomic action ### **Tools Required** | Tool | Purpose | Used in Phase | |------|----------|---------------| | ๐Ÿ—ƒ๏ธ **Database Tool / ORM Adapter** | Read, create, and update `Candidate` records (status, CV paths, results). | 1โ€“5 | | ๐Ÿ“„ **File I/O Tool** | Read/write per-candidate checklist and parsed CV files. | 1โ€“5 | | ๐Ÿ“Š **Reporting Helper / Aggregation Utility** | Query DB and summarize candidate counts (new, screened, passed, failed). | 2 | | ๐Ÿงฉ **Subagent Dispatch Interface** | Send structured tasks to subagents (screening, Gmail, calendar). | 3โ€“5 | | ๐Ÿงฑ **State Manager** | Load and update candidateโ€™s deterministic state object (`state`, `checklist`, `status`). | 4โ€“5 | | ๐Ÿ•ต๏ธ **HR Command Parser / Intent Handler** | Interpret HRโ€™s natural-language instructions (e.g., โ€œprocess new applicantsโ€). | 2 | --- ## ๐Ÿค– **Subagents & Their Tools** ### **1. CV Screening Subagent** **Phase:** 3 **Purpose:** Automatically screen and score CVs. | Tool | Purpose | |------|----------| | ๐Ÿ“„ **CV Parser** | Extract structured text from uploaded CV (PDF/DOCX). | | ๐Ÿงฎ **Screening Model / Classifier** | Evaluate parsed CV using rules or an ML/LLM-based model. | | ๐Ÿ—ƒ๏ธ **DB Access Tool** | Save screening results and update `Candidate.status = cv_screened`. | | ๐Ÿ“„ **Checklist Writer** | Mark `[x] Screening started` and `[x] Screening completed` in the checklist. | --- ### **2. Gmail Subagent** **Phase:** 4 **Purpose:** Send automated emails to candidates based on screening results. | Tool | Purpose | |------|----------| | ๐Ÿ“ฌ **Gmail API Wrapper** | Send templated emails (rejection or invitation). | | ๐Ÿง  **Template Manager** | Store and select appropriate email templates. | | ๐Ÿ—ƒ๏ธ **DB Access Tool** | Record email activity and update candidate state. | | ๐Ÿ“„ **Checklist Writer** | Mark `[x] Candidate notified` and `[x] Email status recorded`. | --- ### **3. Calendar / Scheduling Subagent** **Phase:** 5 **Purpose:** Automate interview scheduling for passed candidates. | Tool | Purpose | |------|----------| | ๐Ÿ—“๏ธ **Google Calendar API Wrapper** | Retrieve HR availability and create interview events. | | ๐Ÿ“ฌ **Gmail API (reuse)** | Send scheduling confirmations and time slot requests. | | ๐Ÿง  **Availability Matcher** | Compare candidate-provided slots vs HR calendar availability. | | ๐Ÿ—ƒ๏ธ **DB Access Tool** | Update `Candidate.status = interview_scheduled`. | | ๐Ÿ“„ **Checklist Writer** | Mark `[x] HR availability checked`, `[x] Interview scheduled`, `[x] Confirmation sent`. | --- ## ๐Ÿงพ **Cross-Cutting Utilities (Shared by All Agents)** | Utility | Purpose | Used by | |----------|----------|----------| | ๐Ÿงฉ **Checklist Manager** | CRUD operations on per-candidate Markdown checklist files (load, mark, persist). | All | | ๐Ÿงฑ **State Sync Layer** | Sync checklist milestone boundaries with DB `status` updates. | Supervisor | | โฑ๏ธ **Logging & Audit Utility** | Record all actions, errors, and state transitions. | All | | ๐Ÿงฎ **Config / Environment Loader** | Manage API keys, paths, and credentials for Gmail & Calendar. | All networked agents | --- ## ๐Ÿงญ **Tool Overview by Phase** | Phase | Supervisor Tools | Subagents / Tools | |-------|-------------------|------------------| | **1 โ€” Candidate I/O + Storage** | DB Adapter, File I/O, Checklist Manager | CV Parser (manual for MVP) | | **2 โ€” Supervisor + UI** | HR Command Parser, DB Reporter, Checklist Manager | โ€” | | **3 โ€” CV Screening** | Subagent Dispatcher, Checklist Manager | CV Parser, Screening Model, DB Writer | | **4 โ€” Candidate Communication** | Subagent Dispatcher, Checklist Manager | Gmail API, Template Manager | | **5 โ€” Interview Scheduling** | Subagent Dispatcher, Checklist Manager | Calendar API, Availability Matcher, Gmail API | --- ## โœ… **Summary** - **Supervisor Agent Tools:** - DB Adapter - Checklist Manager - HR Interface (UI or CLI) - Subagent Dispatcher - State Sync Logic - **Subagents:** - **Screening Subagent:** CV Parser + Screening Model - **Gmail Subagent:** Email Templating + Send API - **Calendar Subagent:** Scheduling + Availability Matching Together, these tools form the complete single-candidate MVP pipeline โ€” from candidate intake โ†’ CV screening โ†’ communication โ†’ interview scheduling.