(&self, specs: I)
| 50 | } |
| 51 | |
| 52 | pub(super) fn register_worker_agents<I>(&self, specs: I) -> Vec<AgentDefinition> |
| 53 | where |
| 54 | I: IntoIterator<Item = WorkerAgentSpec>, |
| 55 | { |
| 56 | specs |
| 57 | .into_iter() |
| 58 | .map(|spec| self.register_worker_agent(spec)) |
| 59 | .collect() |
| 60 | } |
| 61 | |
| 62 | pub(super) async fn add_mcp_server(&self, config: McpServerConfig) -> Result<usize> { |
| 63 | let server_name = config.name.clone(); |