pub enum Intent {
SymbolQuery,
TextSearch,
TracePath,
FindCallers,
FindCallees,
Visualize,
IndexStatus,
Ambiguous,
}Expand description
Intent classification result from the NL classifier.
Each intent maps to a specific sqry command template:
SymbolQuery→sqry query "<expr>"TextSearch→sqry search "<pattern>"TracePath→sqry graph trace-path "<from>" "<to>"FindCallers→sqry graph direct-callers "<symbol>"FindCallees→sqry graph direct-callees "<symbol>"Visualize→sqry visualize --relation <kind> --symbol "<name>"IndexStatus→sqry index --statusAmbiguous→ Cannot determine intent, needs clarification
Variants§
SymbolQuery
Search for symbols by name, kind, or pattern
TextSearch
Text/grep search for patterns in code
TracePath
Trace call path between two symbols
FindCallers
Find all callers of a symbol
FindCallees
Find all callees of a symbol
Visualize
Generate visualization (Mermaid/DOT)
IndexStatus
Check index status
Ambiguous
Intent unclear, need disambiguation
Implementations§
Source§impl Intent
impl Intent
Sourcepub const NUM_CLASSES: usize = 8
pub const NUM_CLASSES: usize = 8
Number of intent classes
Sourcepub fn from_index(idx: usize) -> Self
pub fn from_index(idx: usize) -> Self
Convert from classifier output index
Sourcepub const fn description(&self) -> &'static str
pub const fn description(&self) -> &'static str
Description of what this intent does
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Intent
impl<'de> Deserialize<'de> for Intent
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
impl Copy for Intent
impl Eq for Intent
impl StructuralPartialEq for Intent
Auto Trait Implementations§
impl Freeze for Intent
impl RefUnwindSafe for Intent
impl Send for Intent
impl Sync for Intent
impl Unpin for Intent
impl UnsafeUnpin for Intent
impl UnwindSafe for Intent
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.