diff --git a/packages/base-types/src/node/knowledgeBaseFaq.ts b/packages/base-types/src/node/knowledgeBaseFaq.ts new file mode 100644 index 000000000..d71afe3c9 --- /dev/null +++ b/packages/base-types/src/node/knowledgeBaseFaq.ts @@ -0,0 +1,12 @@ +import { BaseResponseTrace, BaseTraceFrame, TraceType } from './utils'; + + +export interface TraceFramePayload extends BaseResponseTrace { + faqQuestion?: string; + faqAnswer?: string; + query?: string; +} + +export interface TraceFrame extends BaseTraceFrame { + type: TraceType.KNOWLEDGE_BASE_FAQ; +} \ No newline at end of file diff --git a/packages/base-types/src/node/utils/trace.ts b/packages/base-types/src/node/utils/trace.ts index 9ad82b692..d7e38a2b5 100644 --- a/packages/base-types/src/node/utils/trace.ts +++ b/packages/base-types/src/node/utils/trace.ts @@ -18,6 +18,7 @@ export enum TraceType { NO_REPLY = 'no-reply', ENTITY_FILLING = 'entity-filling', CHANNEL_ACTION = 'channel-action', + KNOWLEDGE_BASE_FAQ = 'knowledge-base-faq', } export interface BaseTraceFramePath { diff --git a/packages/base-types/src/trace/index.ts b/packages/base-types/src/trace/index.ts index db0bf604e..748a19cd6 100644 --- a/packages/base-types/src/trace/index.ts +++ b/packages/base-types/src/trace/index.ts @@ -22,6 +22,7 @@ export { TraceFrame as Stream } from '@base-types/node/stream'; export { TraceFrame as Text } from '@base-types/node/text'; export { BaseTraceFrame, TraceType } from '@base-types/node/utils/trace'; export { TraceFrame as Visual } from '@base-types/node/visual'; +export { TraceFrame as KnowledgeBaseFaq } from '@base-types/node/knowledgeBaseFaq'; /** @deprecated */ export { TraceFrame as CarouselTrace } from '@base-types/node/carousel';