objectiveai-cli-sdk 2.0.5

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

/// Result of `laboratories executions create`. One item per agent
/// evaluated.
///
/// Wire: `{"type":"notification","laboratory":[...LabResultItem...]}`.
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Laboratory {
    pub laboratory: Vec<LabResultItem>,
}

/// One agent evaluated. `score = None` means the evaluation either
/// failed or returned no scoreable output; per-evaluation failures
/// surface live via `Output::Error` notifications during streaming.
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct LabResultItem {
    pub agent: objectiveai_sdk::agent::InlineAgentBaseWithFallbacksOrRemoteCommitOptional,
    pub score: Option<f64>,
}