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

Method with_auto_delegation_enabled

core/src/agent_api/session_options.rs:517–522  ·  view source on GitHub ↗

Enable or disable automatic subagent delegation for this session.

(mut self, enabled: bool)

Source from the content-addressed store, hash-verified

515
516 /// Enable or disable automatic subagent delegation for this session.
517 pub fn with_auto_delegation_enabled(mut self, enabled: bool) -> Self {
518 let mut config = self.auto_delegation.take().unwrap_or_default();
519 config.enabled = enabled;
520 self.auto_delegation = Some(config);
521 self
522 }
523
524 /// Enable or disable model-visible manual child-agent tools for this session.
525 ///

Callers 1

Calls

no outgoing calls

Tested by 1