### Task: CMT-01 | Commitment Extraction **Estimated Hours:** 2h | **Owner:** MK | **Priority:** P0 | **Status:** Completed **Definition:** Call GPT-4o to extract commitments, action items, and deadlines from email body. Uses structured output (function calling) to return JSON array of `{commitment, deadline, confidence}`. Few-shot prompt with 3–5 representative examples. > [!NOTE] > Real GPT-4o structured extraction is fully wired with few-shot prompting, confidence filtering, and deterministic fallback support. **Acceptance Criteria:** - [x] Accepts masked email text + thread summary - [x] Extracts commitments, action items, and deadlines - [x] Returns JSON: `[{commitment: str, deadline: date, confidence: 0.0–1.0}]` - [x] Few-shot examples included in prompt - [x] Malformed response → empty array (graceful failure) - [x] Confidence ≥ 0.5 (lower gate)
Task: CMT-01 | Commitment Extraction
Estimated Hours: 2h | Owner: MK | Priority: P0 | Status: Completed
Definition:
Call GPT-4o to extract commitments, action items, and deadlines from email body. Uses structured output (function calling) to return JSON array of
{commitment, deadline, confidence}. Few-shot prompt with 3–5 representative examples.Note
Real GPT-4o structured extraction is fully wired with few-shot prompting, confidence filtering, and deterministic fallback support.
Acceptance Criteria:
[{commitment: str, deadline: date, confidence: 0.0–1.0}]