Skip to main content

launch

Function launch 

Source
async fn launch(
    state: &AppState,
    leader: &Leader,
    name: &str,
    tab_id: &str,
    runtime: &WorkerRuntime,
    account: &WorkerAccount,
    reserved: Option<&str>,
) -> Result<(AgentDefinition, AgentOpenResult), SpawnError>
Expand description

Build the worker from the leader’s definition and open it. A worker that doesn’t open is removed again, with any pane the open made before it failed: the user didn’t get a worker, so there is no definition of one in My Agents and no marked pane taking up one of the leader’s places.