pub struct CascadeRunner {
pub sanitizer: SanitizePipeline,
pub path_policy: Box<dyn CascadeTier>,
pub exact_cache: Arc<ExactCache>,
pub token_jaccard: Arc<TokenJaccard>,
pub embedding_similarity: Arc<EmbeddingSimilarity>,
pub supervisor: Box<dyn CascadeTier>,
pub human: Box<dyn CascadeTier>,
pub storage: Box<dyn StorageBackend>,
pub policy: PolicyConfig,
pub normalizer: Option<PathNormalizer>,
}Expand description
The complete cascade runner. Evaluates tiers in order until one resolves.
Fields§
§sanitizer: SanitizePipeline§path_policy: Box<dyn CascadeTier>§exact_cache: Arc<ExactCache>§token_jaccard: Arc<TokenJaccard>§embedding_similarity: Arc<EmbeddingSimilarity>§supervisor: Box<dyn CascadeTier>§human: Box<dyn CascadeTier>§storage: Box<dyn StorageBackend>§policy: PolicyConfig§normalizer: Option<PathNormalizer>Normalizes file paths to category:relative form for portable storage.
Implementations§
Source§impl CascadeRunner
impl CascadeRunner
Sourcepub async fn evaluate(
&self,
session: &SessionContext,
tool_name: &str,
tool_input: &Value,
) -> Result<DecisionRecord>
pub async fn evaluate( &self, session: &SessionContext, tool_name: &str, tool_input: &Value, ) -> Result<DecisionRecord>
Run the full cascade for a tool call.
Sourcepub async fn evaluate_with_cwd(
&self,
session: &SessionContext,
tool_name: &str,
tool_input: &Value,
cwd: Option<&str>,
) -> Result<DecisionRecord>
pub async fn evaluate_with_cwd( &self, session: &SessionContext, tool_name: &str, tool_input: &Value, cwd: Option<&str>, ) -> Result<DecisionRecord>
Run the full cascade for a tool call, with an optional cwd for path relativization.
Auto Trait Implementations§
impl Freeze for CascadeRunner
impl !RefUnwindSafe for CascadeRunner
impl Send for CascadeRunner
impl Sync for CascadeRunner
impl Unpin for CascadeRunner
impl !UnwindSafe for CascadeRunner
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
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