Skip to content

ai-sdk decouple: cache seam — drop @rudderjs/cache lazy fallback (BYO CacheAdapter) #36

Description

@suleimansh

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions