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)
| 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 | /// |
no outgoing calls