Skip to main content

parse_selection_answer

Function parse_selection_answer 

Source
pub fn parse_selection_answer(
    answer: &str,
    agents: &[DetectedAgent],
    default: &BTreeSet<String>,
) -> Result<BTreeSet<String>, String>
Expand description

Interpret the answer to the selection prompt. Empty keeps default; otherwise all, none, or numbers / agent keys separated by commas or spaces select exactly those tools.