Variable llmDateIntentSchemaConst llmDateIntentSchema : ZodObject < { cadence : ZodNullable < ZodEnum < { per_day : "per_day" } > > ; event : ZodNullable < ZodEnum < { admission : "admission" ; assessment : "assessment" ; discharge : "discharge" ; other : "other" ; session : "session" ; } , > , > ; everyNDays : ZodNullable < ZodNumber > ; kind : ZodEnum < { calendar_week : "calendar_week" ; none : "none" ; rolling_days : "rolling_days" ; since_event : "since_event" ; specific_weekday : "specific_weekday" ; unresolvable : "unresolvable" ; } , > ; n : ZodNullable < ZodNumber > ; subset : ZodNullable < ZodEnum < { full : "full" ; mon_fri : "mon_fri" ; weekend : "weekend" } > , > ; weekday : ZodNullable < ZodEnum < { friday : "friday" ; monday : "monday" ; saturday : "saturday" ; sunday : "sunday" ; thursday : "thursday" ; tuesday : "tuesday" ; wednesday : "wednesday" ; } , > , > ; which : ZodNullable < ZodEnum < { current : "current" ; last : "last" ; most_recent_completed : "most_recent_completed" ; } , > , > ; withinHours : ZodNullable < ZodNumber > ; } , $strip , > = ...
Defined in packages/legacy/src/chart-review/run-v2/lib/calendar/extractDateIntent.ts:13
Flat, OpenAI-safe request schema: one object, kind enum + per-kind fields. Strict structured outputs forbids unions/oneOf AND optional properties, so every field is required-but-nullable — the model emits null for fields irrelevant to the kind.