Skip to main content

spawn_headless_thread

Function spawn_headless_thread 

Source
pub fn spawn_headless_thread(
    workspace: PathBuf,
    model: impl Into<String>,
    state: StateStore,
) -> (EngineHandle, ThreadId, SessionId)
Expand description

Start a headless session and expose its shared operation channel.

Callers can enqueue operations and observe EventMsgs through the returned handle. Outbound model dispatch is intentionally not claimed by this helper until that part of the engine has moved into core.