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 send one message through it. Returns the handle so the caller can observe EventMsgs. This is the API the issue requires: “a session can start and run a turn with no TUI attached”.