pub enum SearchIntentType {
HowTo,
Location,
Explanation,
Comparison,
Troubleshoot,
General,
}Expand description
Types of search intent detected from user prompts.
Each intent type corresponds to a specific information-seeking pattern and has associated namespace weights for memory retrieval.
Variants§
HowTo
“How do I…”, “How to…” - seeking implementation guidance.
Location
“Where is…”, “Find…” - seeking file or code location.
Explanation
“What is…”, “What does…” - seeking explanation.
Comparison
“Difference between…”, “X vs Y” - seeking comparison.
Troubleshoot
“Why is…error”, “…not working” - seeking troubleshooting help.
General
Generic search or unclassified intent.
Implementations§
Source§impl SearchIntentType
impl SearchIntentType
Sourcepub fn namespace_weights(&self) -> Vec<(&'static str, f32)>
pub fn namespace_weights(&self) -> Vec<(&'static str, f32)>
Returns namespace weight multipliers for this intent type.
Higher weights mean more memories from that namespace should be retrieved.
Trait Implementations§
Source§impl Clone for SearchIntentType
impl Clone for SearchIntentType
Source§fn clone(&self) -> SearchIntentType
fn clone(&self) -> SearchIntentType
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 SearchIntentType
impl Debug for SearchIntentType
Source§impl Default for SearchIntentType
impl Default for SearchIntentType
Source§fn default() -> SearchIntentType
fn default() -> SearchIntentType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SearchIntentType
impl<'de> Deserialize<'de> for SearchIntentType
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
Source§impl Display for SearchIntentType
impl Display for SearchIntentType
Source§impl Hash for SearchIntentType
impl Hash for SearchIntentType
Source§impl PartialEq for SearchIntentType
impl PartialEq for SearchIntentType
Source§impl Serialize for SearchIntentType
impl Serialize for SearchIntentType
impl Copy for SearchIntentType
impl Eq for SearchIntentType
impl StructuralPartialEq for SearchIntentType
Auto Trait Implementations§
impl Freeze for SearchIntentType
impl RefUnwindSafe for SearchIntentType
impl Send for SearchIntentType
impl Sync for SearchIntentType
impl Unpin for SearchIntentType
impl UnwindSafe for SearchIntentType
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.