Skip to main content

build_router_full

Function build_router_full 

Source
pub fn build_router_full(
    engine: Engine,
    registry: SpawnerRegistry,
    store: Option<Arc<dyn BlueprintStore>>,
    ws_operator_factory: Option<Arc<OperatorSpawnerFactory>>,
    output_store: Option<Arc<dyn OutputStore>>,
    base_url: Option<Arc<str>>,
    task_store: Option<Arc<dyn TaskStore>>,
    run_store: Option<Arc<dyn RunStore>>,
    replay_store: Option<Arc<dyn ReplayStore>>,
    sync_timeout_secs: u64,
) -> Router
Expand description

8-argument variant of build_router_with_ws_factory_and_output. Passing base_url = Some(...) (e.g. "http://127.0.0.1:7777") makes WSOperatorSession render the actual server bind into the Spawn directive’s base_url line, so the receiving operator can copy the frame straight into a SubAgent prompt (issue #8). None preserves the historical fallback (<check with mse_doctor> placeholder). task_store / run_store swap the default InMemoryTaskStore / InMemoryRunStore (issue #13 ID-hierarchy persistence) for a caller-supplied backend (SqliteTaskStore / SqliteRunStore, for instance); None preserves the process-volatile default. sync_timeout_secs is the server-wide fallback ceiling for the POST /v1/tasks synchronous launch await (GH #33 Guard 2) — see AppState::sync_timeout_secs / run_flow_form’s doc comment.