Circle V2 API Docs
    Preparing search index...
    classifyDateIntent: (
        ...args: [ClassifyDateIntentOptions],
    ) => Promise<
        {
            intent: | { 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" };
            source: "llm" | "parser";
        },
    > = ...

    Classify a question's relative-date reference into a DateIntent: deterministic parser fast-path, LLM fallback for the tail. Grounding-free — it never touches referenceInstant, so it can run EARLY (before question expansion) and be shared with the answer stage instead of each stage re-classifying. source reports which path hit.

    Traced because the parser/LLM split is otherwise invisible: the LLM leaves a span, the parser leaves nothing, so the fast-path hit rate could only be inferred from an absence.

    Type Declaration

      • (
            ...args: [ClassifyDateIntentOptions],
        ): Promise<
            {
                intent: | { 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" };
                source: "llm" | "parser";
            },
        >
      • Parameters

        • ...args: [ClassifyDateIntentOptions]

        Returns Promise<
            {
                intent: | { 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" };
                source: "llm" | "parser";
            },
        >