Skip to main content

CommandRunner

Trait CommandRunner 

Source
pub trait CommandRunner: Send + Sync {
    // Required method
    fn run(&self, model: &str, prompt: &str) -> Result<String>;
}
Expand description

“Run the classifier command and hand back its raw stdout.” The production impl shells out to claude; tests inject a fake returning canned JSON.

Required Methods§

Source

fn run(&self, model: &str, prompt: &str) -> Result<String>

Run the classification for prompt against model, returning the raw stdout (the --output-format json wrapper) on success.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§