Skip to main content

run_ask

Function run_ask 

Source
pub fn run_ask(
    cli: &Cli,
    query: &str,
    path: &str,
    auto_execute: bool,
    dry_run: bool,
    threshold: f32,
    model_dir_override: Option<&Path>,
    allow_unverified_model_flag: bool,
    allow_model_download_flag: bool,
) -> Result<()>
Expand description

Run the sqry ask natural language command.

Translates a natural language query into a sqry command and optionally executes it based on confidence level and user preferences.

ยงErrors

Returns an error if translation fails, output cannot be written, or execution fails.