Loading topic
estimate_tokens helper from that chapter.2 min readestimate_tokens and compact functions from those chapters. Here you decide when compact should run.3 min readcompact and build_request functions from earlier chapters and know how a rolling summary is built. Here you will look at what a summary drops and how to limit the damage.2 min read