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 4, 2024
1 parent 3e1535a commit 0beae76
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 @@ -12,6 +12,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 @@ -58,6 +59,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 @@ -87,6 +92,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 @@ -121,6 +127,7 @@ export default {
MLEngines,
Callbacks,
Skills,
KnowledgeBases,
};
export {
ConnectionOptions,
Expand Down

0 comments on commit 0beae76

Please sign in to comment.