Skip to main content

init_window_seeded

Function init_window_seeded 

Source
pub fn init_window_seeded(
    window: &mut ContextWindow,
    blueprint: &Blueprint,
    seeds: &HashMap<String, String>,
)
Expand description

Initialize a ContextWindow from a blueprint and seed its regions from a name→content map. Adds each layout region plus the infra tool_results/conversation regions, then fills each seed whose key matches a declared region. The task key gets the legacy fallback: if there is no region literally named task, it seeds the first pinned region instead. Pure over the window (no engine/entity), so both the imperative engine and the ECS pipeline’s spawner can share it.