yr.ManagedSessionObj.set_histories#
- ManagedSessionObj.set_histories(histories: List[str]) None[source]#
Set history list and immediately sync to libruntime.
Update local in-memory histories
Construct the latest session JSON
Call bridge UpdateCurrentSession to sync to libruntime
At request end, runtime will auto-persist session to DataSystem
- Parameters:
histories – New history list
- Raises:
RuntimeError – raised when bridge call fails