/** * Abstract class for generic chat input adapter */ export class InputAdapter extends Adapter { /** * Abstract method * * @return {GenericChatRequest} */ getRequest(): GenericChatRequest; /** * Abstract method * * In same cases (plugin calls) the call of the input adapter should not * trigger the dialog engine - instead the bot should only continue in * processing of the response that has already been created, which is * the purpose of this method - if it returns a value different from * null then the bot should process the response returned by this method * * @returns {GenericChatResponse} */ getResponseInProgress(): GenericChatResponse; /** * @returns {string} Returns null if there is not input adapter related * session (which is different from the dialog session) */ getExternalSessId(): string; /** * @returns {string} Returns null if there is not input adapter related * session (which is different from the dialog session) */ getPageId(): string; /** * Abstract method * * @returns {boolean} Returns true if the input is not an utterance * an utterance of the chatbot user but it is rather an internal technical * call */ isTechnicalCall(): boolean; } import { Adapter } from "../Adapter";