Skip to main content

SessionContext type

Below is the type definition for the SessionContext type. You provide this context using the setSessionContext method to help Suki’s AI generate more accurate and meaningful clinical notes.

Patient identity and name

  • An empty name object is dropped and is not sent.
  • Name values are passed through as provided. The SDK does not force normalization.
  • Web SDK handoff: If you capture audio in Headless but the clinician reviews the note in the Web SDK, send patient_id and structured name with setSessionContext. Suki uses those fields to fill in the patient header in the Web SDK. Refer to Seed patient context for Web SDK handoff.

setSessionContext return type

setSessionContext returns Promise<void>. On success the promise resolves with no value. On failure it throws a ContextUpdateFailed error. Refer to Error handling.
Last modified on September 2, 2026