Gets the current failure count for an item.
The scope identifier.
The name of the tool or model.
Atomically increments and returns the failure count for an item.
The scope identifier (e.g. invocation ID or global key).
The name of the tool or model.
The updated failure count.
Atomically resets the failure count for an item and cleans up state.
The scope identifier.
The name of the tool or model.
Thread-safe failure counter scoped by invocation or global key.