Circle V2 API Docs
    Preparing search index...

    Type Alias QuestionRunContext

    Run-scoped context hoisted once per chart-review run and passed into each question. Lets runners skip N redundant Supabase fetches that return the same data for every question.

    type QuestionRunContext = {
        latestAdmission?: PatientAdmissionRow | null;
        levelOfCare?: EntityLevelOfCareRow | null;
        patientCharts?: PatientChartRow[];
        vectorStores?: Safe<PatientVectorStores>;
    }
    Index

    Properties

    latestAdmission?: PatientAdmissionRow | null
    levelOfCare?: EntityLevelOfCareRow | null
    patientCharts?: PatientChartRow[]
    vectorStores?: Safe<PatientVectorStores>

    Per-run Pinecone vector stores (incl. the namespace existence check). When hoisted, the describeIndexStats probe runs ONCE per run instead of once per question. The full Safe<> is stored so the consumer's existing error handling is unchanged; undefined = not hoisted (the runner fetches per question, as before).