OptionalenableOptionalloggerOptionalsessionOptionalsessionWhen 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.
OptionaltreatmentWhen 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.
Optionaluse
The id of the session whose note triggered this run. Used by
SessionNoteAuditRunnerto attribute sources/citations to the session so the UI can deep-link to it.