Skip to main content

hash_context

Function hash_context 

Source
pub fn hash_context(ctx: Option<&ExecutionContext>) -> Hash
Expand description

Compute a BLAKE3 hash over the fields of an ExecutionContext that affect execution.

Two ToolCalls with the same args but different contexts must produce different keys so the speculative cache does not serve a result resolved under the wrong env/cwd.