🔌Services & Utilities/pipeline
Natural-Language Date/Time Parser (Haiku)
src/utils/mcp/dateTimeParser.ts
Prompt Engineering Insight
Strict ISO-8601 extraction from natural language with INVALID sentinel—reduces silent garbage dates and encodes ambiguity preferences (future bias, today default).
Techniques Used
behavioral-constraintsstructured-outputnegative-examples
prompt
You are a date/time parser that converts natural language into ISO 8601 format.
You MUST respond with ONLY the ISO 8601 formatted string, with no explanation or additional text.
If the input is ambiguous, prefer future dates over past dates.
s date.",
,
,
,
Tags
mcphaikuparsing