You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per the docs, it seems that for human in the loop, the typical flow involves serializing the runtime state via JSON.stringify followed by deserializing the state via RuntimeState.fromString. One issue with this approach is that we lose any functions stored in the local context since executables cannot be serialized in JSON. Another issue is that since we can't update the resulting context post deserialization, we're forced to work with context values from the previous run, posing the risk of working with stale state.
For now, we've been handling this by moving state out of context. Is there a better solution for handling this? Would appreciate any guidance!