Skip to main content

Interface: DraftContext

Defined in: src/lib/pipeline/email-draft.ts:8

Pure helpers for M-05 outbound email drafts (ADR-0040). The AI draft is primary (src/server/ai); fallbackDraft is the deterministic draft used when the AI seam is unconfigured or fails, so the review-and-send flow always works. Tone guardrail (enforced in both paths): reference market / industry context, never a facility's specific deficiencies or score. No I/O here.

Properties

facilityName

facilityName: string

Defined in: src/lib/pipeline/email-draft.ts:9


instructions?

optional instructions?: string | null

Defined in: src/lib/pipeline/email-draft.ts:13


persona?

optional persona?: string | null

Defined in: src/lib/pipeline/email-draft.ts:11


recipientName?

optional recipientName?: string | null

Defined in: src/lib/pipeline/email-draft.ts:10


templateKey?

optional templateKey?: string | null

Defined in: src/lib/pipeline/email-draft.ts:12