pub(crate) async fn spawn_for_job(
state: &AppState,
leader_uid: &str,
brief: &str,
model: Option<String>,
account: Option<String>,
) -> Result<SpawnAgentResult, String>Expand description
Open a worker for the job whose leader is leader_uid, from its running
pane: the same path as an agent’s spawn, without asking the user, since
the operator created the job. MAX_LIVE_WORKERS and “workers can’t
spawn” apply.