Skip to content

Commit

Permalink
added knowledge base module to index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
md-abid-hussain committed Nov 8, 2024
1 parent 2d9503a commit 732197b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -89,6 +94,7 @@ const connect = async function (options: ConnectionOptions): Promise<void> {
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);
Expand Down Expand Up @@ -124,6 +130,7 @@ export default {
MLEngines,
Callbacks,
Skills,
KnowledgeBases,
};
export {
ConnectionOptions,
Expand Down

0 comments on commit 732197b

Please sign in to comment.