Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bt-daemon/src/command_output/trace_command_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use super::{
StopCommandOutput, UpdateCommandOutput,
};
use crate::wire::StatusResult;
use crate::EvalSyncSummary;
use serde::Serialize;
use std::path::PathBuf;

Expand All @@ -21,6 +22,7 @@ pub enum TraceCommandOutput {
/// Summaries for the imported sessions.
summaries: Vec<ImportSummary>,
},
Eval(Box<EvalSyncSummary>),
}

impl TraceCommandOutput {
Expand Down Expand Up @@ -114,6 +116,10 @@ impl TraceCommandOutput {
Self::Import { summaries }
}

pub fn eval(summary: EvalSyncSummary) -> Self {
Self::Eval(Box::new(summary))
}

pub fn disable(
source: impl Into<String>,
display_name: impl Into<String>,
Expand Down Expand Up @@ -169,6 +175,7 @@ impl TraceCommandOutput {
.map(ImportSummary::render_human)
.collect::<Vec<_>>()
.join("\n")),
Self::Eval(summary) => Ok(summary.render_human()),
}
}
}
2 changes: 1 addition & 1 deletion bt-daemon/src/ids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use uuid::Uuid;
/// a v4 uuid, pinned as a constant so it never changes across builds).
const NAMESPACE: Uuid = Uuid::from_u128(0x8f2b_4e11_9c7a_4d3e_b6a1_5f0c_2d84_71ae);

const SEP: char = '\u{1f}'; // ASCII unit separator; will not appear in ids/keys.
pub(crate) const SEP: char = '\u{1f}'; // ASCII unit separator; will not appear in ids/keys.

/// A stable namespace for one agent's native session. Source qualification
/// prevents two agents that choose the same native session id from sharing
Expand Down
4 changes: 4 additions & 0 deletions bt-daemon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ mod managed_run;
mod muse;
mod pipeline;
mod plugin_diagnostics;
mod plugin_eval;
pub(crate) mod process;
mod route;
mod server;
Expand Down Expand Up @@ -78,6 +79,9 @@ pub use hook_executable::delegate_hook_executable;
pub use journal::source_journal_path;
pub use managed_run::{run_traced, run_traced_with_host};
pub use plugin_diagnostics::PluginDiagnostic;
pub use plugin_eval::{
EvalArgs, EvalArm, EvalSource, EvalSyncSummary, SyncedDataset, SyncedExperiment,
};
pub use server::{
braintrust_serve_options, debug_serve_options, run_serve, AuthLease, AuthProvider,
AuthResolveReason, ServeOptions,
Expand Down
Loading
Loading