@salesforce/agents
    Preparing search index...

    Function logTurnToHistory

    • Log a turn to history using buffer (fast, no read-modify-write)

      Parameters

      • entry: TranscriptEntry

        the transcript entry to log

      • turnNumber: number

        the turn number (1-based)

      • sessionDir: string

        path to the session directory

      • buffer: SessionHistoryBuffer

        buffer for batched writes

      Returns Promise<void>