MCPcopy Index your code
hub / github.com/AI45Lab/Code / register_workers

Method register_workers

core/src/subagent.rs:622–630  ·  view source on GitHub ↗

Register multiple disposable worker agents and return their definitions.

(&self, specs: I)

Source from the content-addressed store, hash-verified

620
621 /// Register multiple disposable worker agents and return their definitions.
622 pub fn register_workers<I>(&self, specs: I) -> Vec<AgentDefinition>
623 where
624 I: IntoIterator<Item = WorkerAgentSpec>,
625 {
626 specs
627 .into_iter()
628 .map(|spec| self.register_worker(spec))
629 .collect()
630 }
631
632 /// Unregister an agent by name
633 ///

Calls 1

register_workerMethod · 0.80