apoc 0.7.1

Agentic process control for LLMs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! apoc executable entry point.

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let argv = std::env::args().skip(1).collect::<Vec<_>>();
    if let Some(message) = apoc::cli::exact_argv_cli_error(&argv) {
        println!(
            "code: VALIDATION_ERROR\nmessage: {}",
            serde_json::to_string(message)?
        );
        std::process::exit(2);
    }
    apoc::build_cli().serve_with(argv).await
}