Tutorial based on the paper: https://arxiv.org/abs/2404.10952v1 by Quan Shi, Michael Tang, Karthik Narasimhan, Shunyu Yao