MCPcopy Create free account
hub / github.com/AI45Lab/Code / with_manual_delegation_enabled

Method with_manual_delegation_enabled

core/src/agent_api/session_options.rs:530–536  ·  view source on GitHub ↗

Enable or disable model-visible manual child-agent tools for this session. When false, `task` and `parallel_task` are not registered in the session tool surface. Worker agents remain registered for introspection and hosts that manage them directly. This is for cost control or debugging; it is not a security sandbox for the parent agent.

(mut self, enabled: bool)

Source from the content-addressed store, hash-verified

528 /// that manage them directly. This is for cost control or debugging; it is
529 /// not a security sandbox for the parent agent.
530 pub fn with_manual_delegation_enabled(mut self, enabled: bool) -> Self {
531 if let Some(config) = &mut self.auto_delegation {
532 config.allow_manual_delegation = enabled;
533 }
534 self.manual_delegation_enabled = Some(enabled);
535 self
536 }
537
538 /// Globally enable or disable automatic parallel child-agent fan-out.
539 ///

Calls

no outgoing calls