|
fn prompt_instrument_workflow_selection() -> Result<Option<Vec<WorkflowArg>>> { |
|
let choices = ["observe", "evaluate"]; |
|
let defaults = [true, false]; |
|
let selected = MultiSelect::with_theme(&ColorfulTheme::default()) |
|
.with_prompt("Select additional workflow docs to prefetch (instrument is always included)") |
|
.items(&choices) |
|
.defaults(&defaults) |
|
.interact_opt()?; |
|
Ok(selected.map(|indexes| { |
|
let mut workflows = vec![WorkflowArg::Instrument]; |
|
for index in indexes { |
|
match index { |
|
0 => workflows.push(WorkflowArg::Observe), |
|
1 => workflows.push(WorkflowArg::Evaluate), |
|
_ => {} |
|
} |
|
} |
|
workflows |
|
})) |
|
} |
? Select additional workflow docs to prefetch (instrument is always included) ›
✔ observe
⬚ annotate
✔ evaluate
⬚ deploy
we need to explain to the user what this is doing. Users brand new to braintrust have no clue what these workflow options mean.
bt/src/setup/mod.rs
Lines 897 to 916 in b9cc7d1
we need to explain to the user what this is doing. Users brand new to braintrust have no clue what these workflow options mean.