-
Notifications
You must be signed in to change notification settings - Fork 3
Give more context when prompting for additional workflow docs to prefetch #91
Copy link
Copy link
Open
Description
Lines 897 to 916 in b9cc7d1
| 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels