pub async fn process_query(query: &str) -> Result<Vec<CommandSuggestion>>Expand description
Processes a user query and returns command suggestions.
Orchestrates the full query pipeline:
- Search for relevant tools via vector similarity
- Load manpage content for top match
- Scan current directory context
- Build LLM prompt
- Generate response via Ollama
- Parse JSON response
§Arguments
query- Natural language query describing desired functionality
§Errors
Returns an error if:
- No matching tools found in index
- Ollama API call fails
- Response parsing fails