OptionalenableClassifyRetrievalMode?: booleanOptionalpatientCharts?: {OptionaltreatmentEpisodeId?: stringWhen set, the chart fetch is scoped to this treatment episode — the
candidate set the LLM picks from contains ONLY that episode's charts, so
cross-episode documents can never be considered. Has no effect when
patientCharts is provided (the caller owns scoping in that case).
Optional pre-fetched patient charts. When provided, skip the per-question Supabase fetch and filter in memory by the question's time filter. Caller is responsible for passing the full unfiltered set (or a superset covering the widest expected time window).