UNPKG

wa-chat-server

Version:

Watson Assistant powered chat server

18 lines (17 loc) 869 B
import { ConversationService } from './ConversationService'; import { IConversationServiceConfig } from '../../interface/IConversationServiceConfig'; export declare class ConversationServiceCloudFunctionCall extends ConversationService { protected config: IConversationServiceConfig; constructor(config: IConversationServiceConfig); private decodeUrl; /** * This method enables to transform the request before it is passed to the conversation service */ protected transformRequest(request: Record<string, any>): Record<string, any>; /** * This method enables to transform the response from the conversation service before * it is mapped to the Watson Assistant context */ protected transformResponse(response: Record<string, any>): Record<string, any>; getResponse(request: Record<string, any>): Promise<any>; }