stable_cache_key

Function stable_cache_key 

Source
pub fn stable_cache_key(tool_input: &Value) -> String
Expand description

Generate a stable cache key from JSON value

JSON serialization order is not guaranteed to be stable. This function canonicalizes the JSON by sorting object keys using BTreeMap, ensuring identical content always produces the same cache key.