Skip to main content

Module cache

Module cache 

Source
Expand description

In-flight speculative handle cache.

Keyed by (ToolName, blake3::Hash) where the hash covers the tool’s argument map. Bounded by max_in_flight; oldest handle (by started_at) is evicted and cancelled when the bound is exceeded.

Structs§

CacheInner
HandleKey
Unique key for a speculative handle: tool name + BLAKE3 hash of normalized args + context.
SpeculativeCache
Cache for in-flight speculative handles, bounded by max_in_flight.
SpeculativeHandle
An in-flight speculative execution handle.

Functions§

args_template
Produce a normalized args template: top-level keys with their JSON type as placeholder value.
hash_args
Compute a BLAKE3 hash over a normalized JSON args map.
hash_context
Compute a BLAKE3 hash over the fields of an ExecutionContext that affect execution.