Circle V2 API Docs
    Preparing search index...

    Type Alias QuestionRunnerOptions

    type QuestionRunnerOptions = {
        enableNoDocsBailout?: boolean;
        logger?: Logger;
        model: ChatOpenAI;
        sessionId?: SessionId;
        sessionNoteContext?: string;
        supabase: SupabaseClient<Database>;
        treatmentEpisodeId?: string;
        useFullEmrDocuments?: boolean;
    }
    Index

    Properties

    enableNoDocsBailout?: boolean
    logger?: Logger
    model: ChatOpenAI
    sessionId?: SessionId

    The id of the session whose note triggered this run. Used by SessionNoteAuditRunner to attribute sources/citations to the session so the UI can deep-link to it.

    sessionNoteContext?: string

    When set, the runner skips EMR/patient_charts + Pinecone retrieval and uses ONLY this (already HTML-cleaned) session-note text as the agent context. Set by the session-note trigger path; unset for patient-level.

    supabase: SupabaseClient<Database>
    treatmentEpisodeId?: string

    When set, scope the run to a single treatment episode: the candidate charts the EMR runner considers are filtered to this episode, so charts from other episodes (and unassigned charts) are never reviewed. Unset for unscoped patient-level reviews.

    useFullEmrDocuments?: boolean