roboticus-api 0.11.4

HTTP routes, WebSocket, auth, rate limiting, and dashboard for the Roboticus agent runtime
Documentation
//! Re-export shim — task state assembly lives in `roboticus_pipeline::task_state`.

#[cfg(test)]
use roboticus_pipeline::task_state::build_task_state_input;

/// Test-only helper — constructs deps from AppState for integration tests.
#[cfg(test)]
pub(crate) async fn build_task_state_input_for_test(
    state: &super::super::AppState,
    session_id: &str,
    user_content: &str,
    intents: &[roboticus_pipeline::intent_registry::Intent],
    authority: roboticus_core::InputAuthority,
    gate_decision: Option<&roboticus_pipeline::decomposition::DecompositionDecision>,
    inference_mode: &str,
) -> roboticus_agent::task_state::TaskStateInput {
    let deps = roboticus_pipeline::stage_deps::TaskStateDeps {
        core: state,
        reasoning: state,
        tooling: state,
    };
    build_task_state_input(
        &deps,
        session_id,
        user_content,
        intents,
        authority,
        gate_decision,
        inference_mode,
    )
    .await
}