(&mut self)
| 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) { |
no outgoing calls