pub struct StoreRoutingConfig {
pub enabled: bool,
pub strategy: StoreRoutingStrategy,
pub routing_classifier_provider: ProviderName,
pub fallback_route: String,
pub confidence_threshold: f32,
}Expand description
Configuration for cost-sensitive store routing ([memory.store_routing]).
Controls how each query is classified and routed to the appropriate memory backend(s), avoiding unnecessary store queries for simple lookups.
Fields§
§enabled: boolEnable configurable store routing. When false, HeuristicRouter is used
directly (existing behavior). Default: false.
strategy: StoreRoutingStrategyRouting strategy. Default: heuristic.
routing_classifier_provider: ProviderNameProvider name from [[llm.providers]] for LLM-based classification.
Falls back to the primary provider when empty. Default: "".
fallback_route: StringRoute to use when the classifier is uncertain (confidence < threshold).
Default: "hybrid".
confidence_threshold: f32Confidence threshold below which HybridRouter escalates to LLM.
Range: [0.0, 1.0]. Default: 0.7.
Trait Implementations§
Source§impl Clone for StoreRoutingConfig
impl Clone for StoreRoutingConfig
Source§fn clone(&self) -> StoreRoutingConfig
fn clone(&self) -> StoreRoutingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoreRoutingConfig
impl Debug for StoreRoutingConfig
Source§impl Default for StoreRoutingConfig
impl Default for StoreRoutingConfig
Source§impl<'de> Deserialize<'de> for StoreRoutingConfigwhere
StoreRoutingConfig: Default,
impl<'de> Deserialize<'de> for StoreRoutingConfigwhere
StoreRoutingConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StoreRoutingConfig
impl RefUnwindSafe for StoreRoutingConfig
impl Send for StoreRoutingConfig
impl Sync for StoreRoutingConfig
impl Unpin for StoreRoutingConfig
impl UnsafeUnpin for StoreRoutingConfig
impl UnwindSafe for StoreRoutingConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request