@botonic/react
Version:
Build Chatbots using React
18 lines (17 loc) • 789 B
TypeScript
import { EventAction } from '@botonic/core';
import { DebugEventConfig } from '../types';
import { ChunkIdsGroupedBySourceData } from './knowledge-bases-types';
export interface KnowledgeBaseDebugEvent {
action: EventAction.Knowledgebase;
flow_id: string;
flow_node_id: string;
knowledgebase_inference_id: string;
knowledgebase_fail_reason: string;
knowledgebase_sources_ids: string[];
knowledgebase_chunks_ids: string[];
user_input: string;
knowledge_base_chunks_with_sources?: ChunkIdsGroupedBySourceData[];
messageId?: string;
}
export declare const KnowledgeBase: (props: KnowledgeBaseDebugEvent) => import("react/jsx-runtime").JSX.Element;
export declare const getKnowledgeBaseEventConfig: (_data: KnowledgeBaseDebugEvent) => DebugEventConfig;