Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CustomSkill

Top level container for request dispatcher.

Hierarchy

  • CustomSkill

Implements

  • Skill<RequestEnvelope, ResponseEnvelope>

Index

Constructors

constructor

Properties

Protected apiClient

apiClient: ApiClient

Protected customUserAgent

customUserAgent: string

Protected persistenceAdapter

persistenceAdapter: PersistenceAdapter

Protected requestDispatcher

requestDispatcher: RequestDispatcher<HandlerInput, Response>

Protected skillId

skillId: string

Methods

appendAdditionalUserAgent

  • appendAdditionalUserAgent(userAgent: string): void

invoke

  • invoke(requestEnvelope: RequestEnvelope, context?: any): Promise<ResponseEnvelope>
  • Invokes the dispatcher to handler the request envelope and construct the handler input.

    Parameters

    • requestEnvelope: RequestEnvelope
    • Optional context: any

    Returns Promise<ResponseEnvelope>

supports

  • supports(input: any, context?: any): boolean