objectiveai_cli_sdk/output/notification/laboratories/executions/create.rs
1use serde::{Deserialize, Serialize};
2
3/// Result of `laboratories executions create`. One item per agent
4/// evaluated.
5///
6/// Wire: `{"type":"notification","laboratory":[...LabResultItem...]}`.
7#[derive(Serialize, Deserialize, Debug, Clone)]
8pub struct Laboratory {
9 pub laboratory: Vec<LabResultItem>,
10}
11
12/// One agent evaluated. `score = None` means the evaluation either
13/// failed or returned no scoreable output; per-evaluation failures
14/// surface live via `Output::Error` notifications during streaming.
15#[derive(Serialize, Deserialize, Debug, Clone)]
16pub struct LabResultItem {
17 pub agent: objectiveai_sdk::agent::InlineAgentBaseWithFallbacksOrRemoteCommitOptional,
18 pub score: Option<f64>,
19}