Skip to content

CMT-01 | Commitment Extraction #38

Description

@Manish281005

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:

  • Accepts masked email text + thread summary
  • Extracts commitments, action items, and deadlines
  • Returns JSON: [{commitment: str, deadline: date, confidence: 0.0–1.0}]
  • Few-shot examples included in prompt
  • Malformed response → empty array (graceful failure)
  • Confidence ≥ 0.5 (lower gate)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions