Circle V2 API Docs
    Preparing search index...
    • Deterministic fast-path: map high-confidence relative-date phrasings to a DateIntent so the common cases never need the LLM extractor. Deliberately conservative — returns null for anything ambiguous, and the caller falls back to structured-LLM extraction. Order matters: more specific patterns are checked before broader ones.

      Parameters

      • question: string

      Returns
          | { kind: "rolling_days"; n: number }
          | {
              cadence?: "per_day";
              kind: "calendar_week";
              subset?: "full" | "mon_fri" | "weekend";
              which: "last" | "current" | "most_recent_completed";
          }
          | {
              kind: "specific_weekday";
              weekday: | "sunday"
              | "monday"
              | "tuesday"
              | "wednesday"
              | "thursday"
              | "friday"
              | "saturday";
              which: "most_recent";
          }
          | {
              event: "session"
              | "admission"
              | "discharge"
              | "assessment"
              | "other";
              everyNDays?: number;
              kind: "since_event";
              withinHours?: number;
          }
          | { kind: "none" }
          | { kind: "unresolvable" }
          | null