Skip to main content

cmd_code

Function cmd_code 

Source
pub fn cmd_code(
    model: Option<PathBuf>,
    project: PathBuf,
    resume: Option<Option<String>>,
    prompt: Vec<String>,
    print: bool,
    max_turns: u32,
    manifest_path: Option<PathBuf>,
) -> Result<()>
Expand description

Entry point for batuta code / apr code.

This is the public library API — callable from both the batuta binary and apr-cli (PMAT-162). Handles model discovery, driver selection, tool registration, and REPL launch.