Skip to main content

parse_budget

Function parse_budget 

Source
pub fn parse_budget(meta: &Value) -> BTreeMap<String, Value>
Expand description

Extract the :budget submap from a workflow meta map, flattening its keyword keys (:usd, :tokens) to the String keys WorkflowCtx parses. Returns an empty map when there is no (or a malformed) :budget — caps stay unenforced, never a panic.