Skip to main content

open_worker

Function open_worker 

Source
async fn open_worker(
    state: &AppState,
    leader: &Leader,
    worker: &AgentDefinition,
    tab_id: &str,
    runtime: &WorkerRuntime,
) -> Result<AgentOpenResult, String>
Expand description

Remember the worker’s runtime, then open it in tab_id (right of the leader’s pane when that pane is in the tab), marked as the leader’s worker from the moment its block exists.