OptionalmockMode: "Mock" | "Live Test"Add a planId to the buffer (no file I/O)
Flush all buffered data to disk Called at session start (to create initial files), after each turn (to keep real-time), and at session end (to finalize)
OptionalendTime: stringUpdate an existing turn with trace info (no file I/O)
StaticfromCreate a SessionHistoryBuffer from existing session data on disk Used when resuming an existing session
In-memory buffer for session history to minimize file I/O during conversation