Package-level declarations
Types
One cached prompt/response pair plus the vector used to find it again.
Something a SemanticCache (or its CacheStore) did, delivered to a CacheListener the moment it happens.
A CacheListener that republishes events as a Flow you can collect.
A read-only trace of how SemanticCache.explain evaluated one prompt — the tool you reach for when a hit you expected did not happen, or one you did not expect did.
A sink for CacheEvents, called inline the moment each one happens.
Outcome of SemanticCache.lookup.
Storage and nearest-neighbour search behind a SemanticCache.
One candidate entry and every guard's verdict on it, from a CacheExplanation.
What SemanticCache.getOrPut does when the Embedder throws.
Wall-clock nanoseconds spent in each stage of a single lookup, for latency metrics.
Why a CacheEvent.Eviction happened.
Why a CacheLookup.Miss happened.
Turns a typed response into the String a SemanticCache stores, and back.
An Embedder that retries a failing delegate with exponential backoff and jitter.
A CacheEntry together with its similarity to the query vector, in [-1.0, 1.0].
A cache keyed by what a prompt means rather than by its exact bytes.
Builds a SemanticCache with a DSL instead of a long positional constructor call.
Vector maths shared by SemanticCache and by CacheStore implementations.
One prompt/response pair to preload into a SemanticCache via SemanticCache.warm.
Functions
Wraps this verifier in a CachingVerifier that memoizes verdicts per (query, cachedPrompt) pair.
Wraps this embedder in a RetryingEmbedder that retries transient failures with jittered backoff.
Builds a SemanticCache with the SemanticCacheBuilder DSL.