yr.ManagedSessionObj.set_histories

yr.ManagedSessionObj.set_histories#

ManagedSessionObj.set_histories(histories: List[str]) None[source]#

Set history list and immediately sync to libruntime.

  1. Update local in-memory histories

  2. Construct the latest session JSON

  3. Call bridge UpdateCurrentSession to sync to libruntime

  4. At request end, runtime will auto-persist session to DataSystem

Parameters:

histories – New history list

Raises:

RuntimeError – raised when bridge call fails