Register an agent definition
(&self, agent: AgentDefinition)
| 603 | |
| 604 | /// Register an agent definition |
| 605 | pub fn register(&self, agent: AgentDefinition) { |
| 606 | let mut agents = write_or_recover(&self.agents); |
| 607 | tracing::debug!("Registering agent: {}", agent.name); |
| 608 | agents.insert(agent.name.clone(), agent); |
| 609 | } |
| 610 | |
| 611 | /// Register a disposable worker agent from a reproducible spec. |
| 612 | /// |