Skip to main content

parse_run_data_object

Function parse_run_data_object 

Source
pub fn parse_run_data_object(
    data: &Option<Value>,
) -> Result<HashMap<String, String>, String>
Expand description

Convert SDK/MCP/WASM data object to string map for crate::Engine::run.

Single-entry unit maps become convenience strings ("84 eur"). Multi-key maps are rejected until Engine::run accepts typed RunDataValue directly.