pub struct IngestExecutor<D: LlmDispatch + ?Sized> { /* private fields */ }Expand description
The orchestrator. Walks a Pipeline start-to-finish, runs
helpers up front (parallel-where-independent), threads outputs into
LLM stages with explicit-trust slots, and returns an
ExecutionTrace.
Implementations§
Source§impl<D: LlmDispatch + ?Sized> IngestExecutor<D>
impl<D: LlmDispatch + ?Sized> IngestExecutor<D>
Sourcepub fn with_max_content_chars(self, cap: usize) -> Self
pub fn with_max_content_chars(self, cap: usize) -> Self
Builder-style setter for the per-LLM-stage content cap (issue
#782 PERF-11). Callers resolve the namespace policy via
crate::models::GovernancePolicy::effective_multistep_max_content_chars
and thread the value here before calling Self::run.
Sourcepub fn telemetry(&self) -> Arc<PromptCacheTelemetry> ⓘ
pub fn telemetry(&self) -> Arc<PromptCacheTelemetry> ⓘ
Telemetry handle. Used by the MCP tool surface to surface the per-run cache-key trace.
Sourcepub fn run(
&self,
pipeline: &Pipeline,
content: &str,
candidates: &[MemoryHandle],
content_embedding: Option<&[f32]>,
namespace: Option<&str>,
) -> Result<ExecutionTrace, ExecutorError>
pub fn run( &self, pipeline: &Pipeline, content: &str, candidates: &[MemoryHandle], content_embedding: Option<&[f32]>, namespace: Option<&str>, ) -> Result<ExecutionTrace, ExecutorError>
Run a pipeline against an incoming content blob + candidate memory set.
§Errors
ExecutorError::EmptyPipelineif the descriptor has no stages.ExecutorError::InvalidTrustSlotif an LLM stage references a stage index that hasn’t run yet or doesn’t refer to a helper.ExecutorError::LlmDispatchif the underlying LLM call fails.
Auto Trait Implementations§
impl<D> Freeze for IngestExecutor<D>where
D: ?Sized,
impl<D> RefUnwindSafe for IngestExecutor<D>where
D: RefUnwindSafe + ?Sized,
impl<D> Send for IngestExecutor<D>where
D: ?Sized,
impl<D> Sync for IngestExecutor<D>where
D: ?Sized,
impl<D> Unpin for IngestExecutor<D>where
D: ?Sized,
impl<D> UnsafeUnpin for IngestExecutor<D>where
D: ?Sized,
impl<D> UnwindSafe for IngestExecutor<D>where
D: RefUnwindSafe + ?Sized,
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more