open-pincery 1.0.1

Multi-agent platform for durable, event-driven AI agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::process::ExitCode;

use crate::api_client::ApiClient;
use crate::error::AppError;

pub async fn run(client: &ApiClient) -> Result<ExitCode, AppError> {
    let status = client.ready_status().await?;
    if status.is_success() {
        println!("ready");
        Ok(ExitCode::SUCCESS)
    } else {
        println!("not ready: {}", status.as_u16());
        Ok(ExitCode::from(1))
    }
}