#[non_exhaustive]pub enum IntentClass {
ProfileLookup,
TargetedRetrieval,
DeepReasoning,
}Expand description
Query intent tier for MemFlow tiered retrieval.
Maps to increasing levels of retrieval cost and depth.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ProfileLookup
Fast profile/attribute lookup — keyword search, top-k = 3.
TargetedRetrieval
Standard semantic retrieval — hybrid search with MMR, top-k = 10.
DeepReasoning
Multi-hop reasoning — hybrid + graph traversal, top-k = 20.
Implementations§
Source§impl IntentClass
impl IntentClass
Sourcepub fn from_route(route: MemoryRoute) -> Self
pub fn from_route(route: MemoryRoute) -> Self
Classify a routing decision into an intent tier.
Pure function, no I/O — reused by zeph-agent-context’s type-aware retrieval
composition (spec 004-16, #6086) to widen the active FunctionalType set per classified
intent without adding a new LLM call: pass the result of HeuristicRouter::route.
§Examples
use zeph_common::memory::MemoryRoute;
use zeph_memory::IntentClass;
assert_eq!(
IntentClass::from_route(MemoryRoute::Graph),
IntentClass::DeepReasoning
);Trait Implementations§
Source§impl Clone for IntentClass
impl Clone for IntentClass
Source§fn clone(&self) -> IntentClass
fn clone(&self) -> IntentClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IntentClass
Source§impl Debug for IntentClass
impl Debug for IntentClass
Source§impl Display for IntentClass
impl Display for IntentClass
impl Eq for IntentClass
Source§impl Hash for IntentClass
impl Hash for IntentClass
Source§impl PartialEq for IntentClass
impl PartialEq for IntentClass
impl StructuralPartialEq for IntentClass
Auto Trait Implementations§
impl Freeze for IntentClass
impl RefUnwindSafe for IntentClass
impl Send for IntentClass
impl Sync for IntentClass
impl Unpin for IntentClass
impl UnsafeUnpin for IntentClass
impl UnwindSafe for IntentClass
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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