pub struct RuntimeExecutor { /* private fields */ }Implementations§
Source§impl RuntimeExecutor
impl RuntimeExecutor
Sourcepub fn from_store(store: &dyn StageStore) -> Self
pub fn from_store(store: &dyn StageStore) -> Self
Build from a store. LLM and embedding providers are not required; stages that
need them will return ExecutionError::StageFailed with a clear message.
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, enabling llm_complete/llm_classify/llm_extract stages.
Sourcepub fn with_embedding(self, provider: Box<dyn EmbeddingProvider>) -> Self
pub fn with_embedding(self, provider: Box<dyn EmbeddingProvider>) -> Self
Attach an embedding provider, enabling real cosine-similarity store_search and real llm_embed responses. Pre-computes embeddings for all cached stages.
Sourcepub fn set_llm(&mut self, llm: Box<dyn LlmProvider>, config: LlmConfig)
pub fn set_llm(&mut self, llm: Box<dyn LlmProvider>, config: LlmConfig)
Set or replace the LLM provider in-place.
Sourcepub fn has_implementation(&self, stage_id: &StageId) -> bool
pub fn has_implementation(&self, stage_id: &StageId) -> bool
True if this executor can handle the given stage.
Trait Implementations§
Source§impl StageExecutor for RuntimeExecutor
impl StageExecutor for RuntimeExecutor
Auto Trait Implementations§
impl !Freeze for RuntimeExecutor
impl !RefUnwindSafe for RuntimeExecutor
impl Send for RuntimeExecutor
impl Sync for RuntimeExecutor
impl Unpin for RuntimeExecutor
impl UnsafeUnpin for RuntimeExecutor
impl !UnwindSafe for RuntimeExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more