pub enum QueryIntent {
SemanticSearch,
SymbolDefinition(String),
SymbolReferences(String),
SymbolCallers(String),
ModuleImports(String),
FileSymbols(String),
ToolCalls(Option<String>),
ErrorSearch(Option<String>),
DocQa,
DecisionWhy(String),
PlanNext,
}Expand description
Query intent classification.
Determines which search backend should handle the query.
Variants§
SemanticSearch
Semantic search (default fallback).
SymbolDefinition(String)
Find where a symbol is defined.
SymbolReferences(String)
Find all usages/references of a symbol.
SymbolCallers(String)
Find who calls a function.
ModuleImports(String)
Find who imports a module.
FileSymbols(String)
Find all symbols in a file.
ToolCalls(Option<String>)
Tool call history, optionally filtered by tool name.
ErrorSearch(Option<String>)
Error/stack trace search, optionally by signature.
DocQa
Documentation question-answering.
DecisionWhy(String)
Why was a decision made.
PlanNext
What’s the next step in a plan.
Implementations§
Source§impl QueryIntent
impl QueryIntent
Sourcepub fn should_blend_semantic(&self) -> bool
pub fn should_blend_semantic(&self) -> bool
Returns whether this intent should blend semantic context with structural results.
Per CONTEXT.md: “structural first, semantic expands” Code-intent queries get both precise structural results and related semantic context.
Sourcepub fn should_fallback_semantic(&self) -> bool
pub fn should_fallback_semantic(&self) -> bool
Returns whether this intent should fall back to semantic on empty results.
Sourcepub fn is_trace_query(&self) -> bool
pub fn is_trace_query(&self) -> bool
Returns true if this is a trace/debug query (no semantic blending).
Trait Implementations§
Source§impl Clone for QueryIntent
impl Clone for QueryIntent
Source§fn clone(&self) -> QueryIntent
fn clone(&self) -> QueryIntent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QueryIntent
impl Debug for QueryIntent
Source§impl Default for QueryIntent
impl Default for QueryIntent
Source§fn default() -> QueryIntent
fn default() -> QueryIntent
Source§impl PartialEq for QueryIntent
impl PartialEq for QueryIntent
impl StructuralPartialEq for QueryIntent
Auto Trait Implementations§
impl Freeze for QueryIntent
impl RefUnwindSafe for QueryIntent
impl Send for QueryIntent
impl Sync for QueryIntent
impl Unpin for QueryIntent
impl UnsafeUnpin for QueryIntent
impl UnwindSafe for QueryIntent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Fruit for T
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>
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>
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