Use SessionAttributesManager to manage prefixed session attributes
The
SessionAttributesManager is an abstract class used to manage session attributes within the @talkyjs/core framework. It ensures that attributes are stored under a specific namespace (default prefix __talkyjs) to prevent collisions with other session data. It requires an AttributesManager (from ask-sdk-core) to be passed into its constructor.import { AttributesManager } from 'ask-sdk-core';
import { SessionAttributesManager } from '@talkyjs/core';
class MySessionManager extends SessionAttributesManager {
// Implementation
}
const manager = new MySessionManager({
attributesManager: myAttributesManagerInstance
});