MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / get_active_mut

Method get_active_mut

crates/chat-cli/src/cli/agent/mod.rs:474–476  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

472 }
473
474 pub fn get_active_mut(&mut self) -> Option<&mut Agent> {
475 self.agents.get_mut(&self.active_idx)
476 }
477
478 pub fn switch(&mut self, name: &str) -> eyre::Result<&Agent> {
479 if !self.agents.contains_key(name) {

Callers 5

executeMethod · 0.80
executeMethod · 0.80
trust_toolsMethod · 0.80
untrust_toolsMethod · 0.80
test_get_active_mutFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_get_active_mutFunction · 0.64