From 732197b2477dca82fb6e3af8ceb863e60089bef9 Mon Sep 17 00:00:00 2001 From: Md Abid Hussain Date: Mon, 4 Nov 2024 19:21:05 +0530 Subject: [PATCH] added knowledge base module to index.ts --- src/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/index.ts b/src/index.ts index c6a9603..3477046 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,6 +13,7 @@ import { } from './util/http'; import TablesModule from './tables/tablesModule'; import skillsModule from './skills/skillsModule'; +import knowledgeBaseModule from './knowledge_bases/knowledge_baseModule'; import HttpAuthenticator from './httpAuthenticator'; import { Axios } from 'axios'; @@ -60,6 +61,10 @@ const MLEngines = new MLEnginesModule.MLEnginesRestApiClient( httpAuthenticator ); const Skills = new skillsModule.SkillsRestApiClient(defaultAxiosInstance); +const KnowledgeBases = new knowledgeBaseModule.KnowledgeBaseRestApiClient( + SQL, + defaultAxiosInstance +); const Callbacks = new CallbacksModule.CallbacksRestApiClient( defaultAxiosInstance, httpAuthenticator @@ -89,6 +94,7 @@ const connect = async function (options: ConnectionOptions): Promise { Projects.client = httpClient; MLEngines.client = httpClient; Callbacks.client = httpClient; + KnowledgeBases.client = httpClient; if (options.logging) { const logger = new Logger(options.logging.logger, options.logging.logLevel); @@ -124,6 +130,7 @@ export default { MLEngines, Callbacks, Skills, + KnowledgeBases, }; export { ConnectionOptions,