@botonic/plugin-hubtype-analytics
Version:
Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord
19 lines • 897 B
JavaScript
import { EventAction, EventType, } from '../types';
import { HtEvent } from './ht-event';
export class HtEventKnowledgeBase extends HtEvent {
constructor(event, requestData) {
super(event, requestData);
this.type = EventType.BotEvent;
this.action = 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_node_id = event.flowNodeId;
}
}
//# sourceMappingURL=ht-event-knowledge-base.js.map