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§
- Cache
Inner - Handle
Key - Unique key for a speculative handle: tool name + BLAKE3 hash of normalized args + context.
- Speculative
Cache - Cache for in-flight speculative handles, bounded by
max_in_flight. - Speculative
Handle - 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
ExecutionContextthat affect execution.