objectiveai-api 2.0.5

ObjectiveAI API Server
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

/// The `status` discriminator on a terminal `end` line, with its
/// optional `error` payload flattened into the parent object.
///
/// There is no `cancelled` variant: in-flight cancellation isn't
/// supported (see `StdioInput`). Anything that *would* have been a
/// cancel — drain-phase SIGTERM, runner shutdown — surfaces as an
/// `error` with a descriptive message.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(tag = "status", rename_all = "snake_case")]
pub enum StdioEndStatus {
    /// `{"status":"ok"}`
    Ok,
    /// `{"status":"error","error":"<msg>"}`
    Error { error: String },
}