pub struct CompositeExecutor { /* private fields */ }Expand description
Executor that combines all three executor layers.
Implementations§
Source§impl CompositeExecutor
impl CompositeExecutor
Sourcepub fn from_store(store: &dyn StageStore) -> Self
pub fn from_store(store: &dyn StageStore) -> Self
Build from a store using only the built-in stdlib implementations.
NixExecutor is included only when nix is available in PATH.
Sourcepub fn from_store_with_registry(
store: &dyn StageStore,
registry: InlineRegistry,
) -> Self
pub fn from_store_with_registry( store: &dyn StageStore, registry: InlineRegistry, ) -> Self
Build from a store, augmenting the stdlib with additional inline
stage implementations from registry.
Use this when your project needs Pure Rust stage implementations
without modifying noether-core. See InlineRegistry for usage.
Sourcepub fn with_isolation(self, backend: IsolationBackend) -> Self
pub fn with_isolation(self, backend: IsolationBackend) -> Self
Replace the isolation backend on the embedded NixExecutor. No-op when Nix isn’t installed (synthesized stages can’t run anyway, so the sandbox question doesn’t arise).
Sourcepub fn with_llm(self, llm: Box<dyn LlmProvider>, config: LlmConfig) -> Self
pub fn with_llm(self, llm: Box<dyn LlmProvider>, config: LlmConfig) -> Self
Attach an LLM provider so llm_complete / llm_classify / llm_extract
stages are actually executed instead of returning a config error.
Sourcepub fn with_embedding(self, provider: Box<dyn EmbeddingProvider>) -> Self
pub fn with_embedding(self, provider: Box<dyn EmbeddingProvider>) -> Self
Attach an embedding provider so llm_embed uses real embeddings and
store_search uses cosine similarity instead of substring matching.
Sourcepub fn register_synthesized(
&mut self,
stage_id: &StageId,
code: &str,
language: &str,
effects: EffectSet,
)
pub fn register_synthesized( &mut self, stage_id: &StageId, code: &str, language: &str, effects: EffectSet, )
Register a freshly synthesized stage so it can be executed
immediately without reloading the store. The caller must
supply the stage’s declared effects — the isolation policy is
derived from them, and silently defaulting to
EffectSet::pure
would put a Network-effect stage into a no-network sandbox and
surface as an opaque DNS failure at runtime.
Sourcepub fn nix_available(&self) -> bool
pub fn nix_available(&self) -> bool
True when nix is available and will handle synthesized stages.