What's your pattern for managing AIs client state across a long session?
Working on something that makes a lot of API calls in sequence and running into the usual context management headaches.
Curious what patterns people use in Python or other language for this:
- When do you decide to summarize vs truncate old conversation turns?
- Do you manage message history yourself or rely on something else?
- Any libraries you've found useful beyond the official SDKs?
Not looking for a framework recommendation necessarily, more interested in how people actually handle this in production scripts or long-running tools. The official docs are pretty thin on this.