Part of epic #35.
src/agent-run-store.ts and src/sub-agent-run-store.ts lazy-import @rudderjs/cache (specifier @rudderjs/cache, key prefix rudderjs:ai:...). The store already mirrors CacheAdapter structurally and already accepts { cache } explicitly.
Plan: drop the hardcoded @rudderjs/cache dynamic-import fallback; require a caller-supplied CacheAdapter (or a generically registered global cache seam). The Rudder binding registers the @rudderjs/cache adapter on its side.
Watch: the rudderjs:ai: key-prefix default is a serialized value — keep it configurable and document any change for existing cache contents.
Part of epic #35.
src/agent-run-store.tsandsrc/sub-agent-run-store.tslazy-import@rudderjs/cache(specifier@rudderjs/cache, key prefixrudderjs:ai:...). The store already mirrorsCacheAdapterstructurally and already accepts{ cache }explicitly.Plan: drop the hardcoded
@rudderjs/cachedynamic-import fallback; require a caller-suppliedCacheAdapter(or a generically registered global cache seam). The Rudder binding registers the@rudderjs/cacheadapter on its side.Watch: the
rudderjs:ai:key-prefix default is a serialized value — keep it configurable and document any change for existing cache contents.