UNPKG

@botonic/plugin-hubtype-analytics

Version:

Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord

25 lines 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HtEventKnowledgeBase = void 0; const types_1 = require("../types"); const ht_event_1 = require("./ht-event"); class HtEventKnowledgeBase extends ht_event_1.HtEvent { constructor(event, requestData) { super(event, requestData); this.type = types_1.EventType.BotEvent; this.action = types_1.EventAction.Knowledgebase; this.knowledgebase_inference_id = event.knowledgebaseInferenceId; this.knowledgebase_fail_reason = event.knowledgebaseFailReason; this.knowledgebase_sources_ids = event.knowledgebaseSourcesIds; this.knowledgebase_chunks_ids = event.knowledgebaseChunksIds; this.knowledgebase_message_id = event.knowledgebaseMessageId; this.user_input = event.userInput; this.flow_thread_id = event.flowThreadId; this.flow_id = event.flowId; this.flow_name = event.flowName; this.flow_node_id = event.flowNodeId; this.flow_node_content_id = event.flowNodeContentId; } } exports.HtEventKnowledgeBase = HtEventKnowledgeBase; //# sourceMappingURL=ht-event-knowledge-base.js.map