objectiveai-cli-sdk 2.0.5

Library surface for objectiveai-cli: structured JSON Lines output types.
Documentation
use serde::{Deserialize, Serialize};

/// Result of `functions executions create`.
///
/// Wire: `{"type":"notification","execution":{"output":...}}`.
///
/// Per-task / per-vote / reasoning errors are surfaced live during
/// streaming via `Output::Error` notifications (see the CLI's
/// streaming handler). They are NOT bundled into this payload.
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Execution {
    pub execution: ExecutionResult,
}

/// Body of an execution result: the final task output.
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct ExecutionResult {
    pub output: objectiveai_sdk::functions::expression::TaskOutputOwned,
}