Circle V2 API Docs
    Preparing search index...

    Type Alias CaseChatInput

    type CaseChatInput = {
        config?: AuditQuestionConfigOverrides;
        history?: CaseChatTurn[];
        message: string;
        patientId: PatientId;
        referenceInstant?: Date;
        treatmentEpisodeId?: TreatmentEpisodeId;
    }
    Index

    Properties

    history?: CaseChatTurn[]

    Turns before message, oldest first. Empty on the first turn of a conversation.

    message: string

    The message being answered.

    patientId: PatientId
    referenceInstant?: Date

    Frozen "now" for date reasoning. Production leaves this unset (wall-clock).

    treatmentEpisodeId?: TreatmentEpisodeId

    Scopes the chart set. Chat is restricted to the latest episode, so callers resolve and pass it.