Skip to main content

context_globals

Function context_globals 

Source
pub fn context_globals(
    view: Option<&AgentContextView>,
) -> HashMap<String, Value>
Expand description

The Lua globals this backend derives from the materialized context view — the single place the mapping “view field → Lua global” is decided, so crate::blueprint::compiler’s Lua worker can render the same surface and keep a gate portable between the two in-process backends.

Absent / empty inputs contribute no entry at all (rather than an empty table), so a script sees nil and can branch on presence — the same “insert nothing when absent” contract the rest of this axis follows.