vertebrae.cache.fingerprint
Conservative cache fingerprint helpers.
Functions
|
Hash the complete typed value using the canonical identity representation. |
|
Hash complete canonical content without sampling large sequences or arrays. |
|
Return the complete typed JSON representation used by exact hashes. |
|
Return canonical JSON for complete typed content. |
|
Hash a value that is already in |
|
Fingerprint a serializable extractor recipe. |
Module Contents
- vertebrae.cache.fingerprint.hash_json(value)[source]
Hash the complete typed value using the canonical identity representation.
hash_jsonis the public identity hash. It intentionally has the same exact semantics ashash_json_exact(); the latter name remains useful at call sites that want to emphasize that every value participates in the identity. Unsupported opaque objects fail instead of silently falling back to unstablereproutput.- Parameters:
value (Any)
- Return type:
str
- vertebrae.cache.fingerprint.hash_json_exact(value)[source]
Hash complete canonical content without sampling large sequences or arrays.
This is intended for protocol and evaluation identities where every declared prompt or configuration entry must affect the result key.
- Parameters:
value (Any)
- Return type:
str
- vertebrae.cache.fingerprint.exact_json_value(value)[source]
Return the complete typed JSON representation used by exact hashes.
- Parameters:
value (Any)
- Return type:
Any
- vertebrae.cache.fingerprint.canonical_json_exact(value)[source]
Return canonical JSON for complete typed content.
- Parameters:
value (Any)
- Return type:
str
- vertebrae.cache.fingerprint.hash_exact_json_value(value)[source]
Hash a value that is already in
exact_json_value()form.- Parameters:
value (Any)
- Return type:
str