Skip to main content

normalize_input_for_key

Function normalize_input_for_key 

Source
pub fn normalize_input_for_key(input: &Value) -> Value
Expand description

Normalize a JSON value so structurally-equivalent inputs produce the same cache key. Objects are key-sorted; arrays keep order. Auth context fields are removed so identical requests from different callers collide intentionally (tool cache is per-input, not per-user).