How to use the ask-sdk-runtime.createAskSdkUserAgent function in ask-sdk-runtime

To help you get started, we’ve selected a few ask-sdk-runtime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexa / alexa-skills-kit-sdk-for-nodejs / ask-sdk-core / lib / skill / CustomSkill.ts View on Github external
? new ServiceClientFactory({
                    apiClient : this.apiClient,
                    apiEndpoint : requestEnvelope.context.System.apiEndpoint,
                    authorizationValue : requestEnvelope.context.System.apiAccessToken,
                })
                : undefined,
        };

        const response = await this.requestDispatcher.dispatch(input);

        const packageInfo = require('../../package.json');

        return {
            version : '1.0',
            response,
            userAgent : createAskSdkUserAgent(packageInfo.version, this.customUserAgent),
            sessionAttributes : requestEnvelope.session ? input.attributesManager.getSessionAttributes() : undefined,
        };
    }

ask-sdk-runtime

Base runtime package for Alexa Skills Kit SDK

Apache-2.0
Latest version published 2 years ago

Package Health Score

62 / 100
Full package analysis