Skip to main content

Reloader

Type Alias Reloader 

Source
pub type Reloader = Box<dyn FnMut(&mut PipelineWorld, &str) -> Option<Entity> + Send>;
Expand description

The daemon-installed function that pages a previously-unloaded run back into the world from its on-disk state: given a run id, it reloads the agent (its blueprint, tool state, context, stage) and returns the new entity, or None if there is no such resumable run on disk. Used for reload-on-demand - a control/sub-agent op targeting a run that isn’t currently in memory pages it in first via the host’s internal resolve-or-reload step. Installed with WorldHost::set_reloader.

Aliased Type§

pub struct Reloader(/* private fields */);