pub fn link(
base: Arc<dyn SpawnerAdapter>,
layer_hints: &[String],
engine: &Engine,
) -> Arc<dyn SpawnerAdapter> ⓘExpand description
Wrap the compiled base SpawnerAdapter with Layers and return the
finished value.
base:Compiler.compile()’sCompiledBlueprint.router(Arc<CompiledAgentTable>), upcast toArc<dyn SpawnerAdapter>.layer_hints:Blueprint.spawner_hints.layers— the capability key strings.engine: needed both to look factories up on theLayerRegistryand to run them (each base/hint factory takes&Engineand returnsArc<dyn SpawnerLayer>).
Order: base_factories first (wrapped for every Blueprint), then
lookup_hint (the layers this Blueprint declares).