Add `get_runtime_vars()` accessor to `._state`

Expose a copy of the current actor's `_runtime_vars` dict
via a public fn; TODO to convert to `RuntimeVars` struct.

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
multicast_revertable_streams
Gud Boi 2026-03-20 20:04:49 -04:00
parent cc3bfac741
commit c7b5d00f19
1 changed files with 9 additions and 0 deletions

View File

@ -234,3 +234,12 @@ def current_ipc_protos() -> list[str]:
''' '''
return _runtime_vars['_enable_tpts'] return _runtime_vars['_enable_tpts']
# !TODO, convert this to the new `RuntimeVars` struct!
def get_runtime_vars() -> dict:
'''
Deliver a **copy** of the current `Actor`'s "runtime variables".
'''
return dict(_runtime_vars)