pub fn spawn_tool_pool(
runtime: &Handle,
jobs: UnboundedReceiver<ToolJob>,
results: UnboundedSender<ToolOutcome>,
wake: Arc<Notify>,
workers: usize,
) -> Vec<JoinHandle<()>>Expand description
Spawn a pool of workers tool_worker tasks off one shared job channel and
return their handles. workers is clamped to at least 1. This is the tool-lane
concurrency cap - the number of agents whose tool batches may run at once.