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

Method with_max_parallel_tasks

core/src/agent_api/session_options.rs:505–508  ·  view source on GitHub ↗

Override the maximum number of sibling parallel branches for this session.

(mut self, tasks: usize)

Source from the content-addressed store, hash-verified

503
504 /// Override the maximum number of sibling parallel branches for this session.
505 pub fn with_max_parallel_tasks(mut self, tasks: usize) -> Self {
506 self.max_parallel_tasks = Some(tasks.max(1));
507 self
508 }
509
510 /// Override automatic subagent delegation for this session.
511 pub fn with_auto_delegation(mut self, config: crate::config::AutoDelegationConfig) -> Self {

Calls

no outgoing calls