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

Method with_worker_agent

core/src/agent_api/session_options.rs:85–88  ·  view source on GitHub ↗

Register a cattle-style worker with this session's task delegation registry.

(mut self, spec: WorkerAgentSpec)

Source from the content-addressed store, hash-verified

83
84 /// Register a cattle-style worker with this session's task delegation registry.
85 pub fn with_worker_agent(mut self, spec: WorkerAgentSpec) -> Self {
86 self.worker_agents.push(spec);
87 self
88 }
89
90 /// Register multiple cattle-style workers with this session.
91 pub fn with_worker_agents<I>(mut self, specs: I) -> Self

Calls

no outgoing calls