neuralseek 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +206 -0
- package/docs/AnalyticsApi.md +59 -0
- package/docs/AnalyticsBody.md +6 -0
- package/docs/AnswerRatingsBody.md +7 -0
- package/docs/CategorizeApi.md +58 -0
- package/docs/CategorizeBody.md +6 -0
- package/docs/ChatCompletionsBody.md +9 -0
- package/docs/ChatcompletionsMessages.md +16 -0
- package/docs/ChatcompletionsTools.md +13 -0
- package/docs/ExtractBody.md +11 -0
- package/docs/ExtractEntitiesApi.md +58 -0
- package/docs/GuardrailsApi.md +109 -0
- package/docs/IdentifysingleBody.md +6 -0
- package/docs/InlineResponse200.md +6 -0
- package/docs/InlineResponse2001.md +8 -0
- package/docs/InlineResponse20010.md +6 -0
- package/docs/InlineResponse20011.md +9 -0
- package/docs/InlineResponse20012.md +7 -0
- package/docs/InlineResponse20013.md +6 -0
- package/docs/InlineResponse2002.md +10 -0
- package/docs/InlineResponse2002Render.md +9 -0
- package/docs/InlineResponse2003.md +6 -0
- package/docs/InlineResponse2003Data.md +10 -0
- package/docs/InlineResponse2004.md +10 -0
- package/docs/InlineResponse2004Choices.md +8 -0
- package/docs/InlineResponse2004Message.md +14 -0
- package/docs/InlineResponse2005.md +9 -0
- package/docs/InlineResponse2005TopIntents.md +7 -0
- package/docs/InlineResponse2006.md +9 -0
- package/docs/InlineResponse2006ExtractedEntities.md +6 -0
- package/docs/InlineResponse2007.md +12 -0
- package/docs/InlineResponse2007Translations.md +6 -0
- package/docs/InlineResponse2008.md +7 -0
- package/docs/InlineResponse2009.md +7 -0
- package/docs/KeysApi.md +99 -0
- package/docs/LogExternalAgentBody.md +11 -0
- package/docs/LogExternalAgentEntries.md +34 -0
- package/docs/LogsApi.md +110 -0
- package/docs/LogsBody.md +8 -0
- package/docs/MAIstroAgentRatingsApi.md +109 -0
- package/docs/MAIstroApi.md +367 -0
- package/docs/MaistroBatchBody.md +9 -0
- package/docs/MaistroBody.md +9 -0
- package/docs/MaistroOptions.md +20 -0
- package/docs/MaistroRateBody.md +9 -0
- package/docs/MaistroRatingsBody.md +7 -0
- package/docs/MaistroStreamBody.md +9 -0
- package/docs/MaistroStreamOptions.md +19 -0
- package/docs/PiiBody.md +6 -0
- package/docs/RateBody.md +8 -0
- package/docs/ScoreBody.md +7 -0
- package/docs/Seek.md +9 -0
- package/docs/SeekAnswerRatingsApi.md +109 -0
- package/docs/SeekApi.md +109 -0
- package/docs/SeekOptions.md +24 -0
- package/docs/SeekResponse.md +32 -0
- package/docs/SeekResponsePassages.md +11 -0
- package/docs/SeekResponseVariablesExpanded.md +7 -0
- package/docs/SeekStreamBody.md +9 -0
- package/docs/SeekStreamOptions.md +23 -0
- package/docs/SeekStreamOptionsLastTurn.md +7 -0
- package/docs/SeekStreamOptionsPersonalize.md +10 -0
- package/docs/SeekStreamParams.md +7 -0
- package/docs/SeekStreamUserSession.md +7 -0
- package/docs/SeekStreamUserSessionMetadata.md +6 -0
- package/docs/SeekStreamUserSessionSystem.md +6 -0
- package/docs/ServiceTestApi.md +46 -0
- package/docs/TestBody.md +6 -0
- package/docs/TestBody1.md +6 -0
- package/docs/TestQuestionsApi.md +107 -0
- package/docs/TrainBody.md +7 -0
- package/docs/TrainKBApi.md +58 -0
- package/docs/TranslateApi.md +259 -0
- package/docs/TranslateBody.md +11 -0
- package/docs/TranslateGlossaryBody.md +6 -0
- package/docs/TranslateGlossaryBody1.md +6 -0
- package/docs/UserDataApi.md +59 -0
- package/git_push.sh +52 -0
- package/mocha.opts +1 -0
- package/package.json +55 -0
- package/src/AnalyticsApi.js +82 -0
- package/src/ApiClient.js +585 -0
- package/src/CategorizeApi.js +87 -0
- package/src/ExtractEntitiesApi.js +87 -0
- package/src/GuardrailsApi.js +134 -0
- package/src/KeysApi.js +122 -0
- package/src/LogsApi.js +133 -0
- package/src/MAIstroAgentRatingsApi.js +134 -0
- package/src/MAIstroApi.js +366 -0
- package/src/SeekAnswerRatingsApi.js +134 -0
- package/src/SeekApi.js +136 -0
- package/src/ServiceTestApi.js +79 -0
- package/src/TestQuestionsApi.js +124 -0
- package/src/TrainKBApi.js +85 -0
- package/src/TranslateApi.js +277 -0
- package/src/UserDataApi.js +81 -0
- package/src/index.js +587 -0
- package/src/model/AnalyticsBody.js +54 -0
- package/src/model/AnswerRatingsBody.js +62 -0
- package/src/model/CategorizeBody.js +55 -0
- package/src/model/ChatCompletionsBody.js +80 -0
- package/src/model/ChatcompletionsMessages.js +92 -0
- package/src/model/ChatcompletionsTools.js +75 -0
- package/src/model/ExtractBody.js +94 -0
- package/src/model/IdentifysingleBody.js +55 -0
- package/src/model/InlineResponse200.js +56 -0
- package/src/model/InlineResponse2001.js +70 -0
- package/src/model/InlineResponse20010.js +54 -0
- package/src/model/InlineResponse20011.js +81 -0
- package/src/model/InlineResponse20012.js +60 -0
- package/src/model/InlineResponse20013.js +55 -0
- package/src/model/InlineResponse2002.js +88 -0
- package/src/model/InlineResponse2002Render.js +80 -0
- package/src/model/InlineResponse2003.js +56 -0
- package/src/model/InlineResponse2003Data.js +88 -0
- package/src/model/InlineResponse2004.js +86 -0
- package/src/model/InlineResponse2004Choices.js +70 -0
- package/src/model/InlineResponse2004Message.js +80 -0
- package/src/model/InlineResponse2005.js +80 -0
- package/src/model/InlineResponse2005TopIntents.js +64 -0
- package/src/model/InlineResponse2006.js +79 -0
- package/src/model/InlineResponse2006ExtractedEntities.js +55 -0
- package/src/model/InlineResponse2007.js +103 -0
- package/src/model/InlineResponse2007Translations.js +55 -0
- package/src/model/InlineResponse2008.js +63 -0
- package/src/model/InlineResponse2009.js +63 -0
- package/src/model/LogExternalAgentBody.js +104 -0
- package/src/model/LogExternalAgentEntries.js +195 -0
- package/src/model/LogsBody.js +73 -0
- package/src/model/MaistroBatchBody.js +81 -0
- package/src/model/MaistroBody.js +81 -0
- package/src/model/MaistroOptions.js +176 -0
- package/src/model/MaistroRateBody.js +78 -0
- package/src/model/MaistroRatingsBody.js +62 -0
- package/src/model/MaistroStreamBody.js +81 -0
- package/src/model/MaistroStreamOptions.js +167 -0
- package/src/model/PiiBody.js +55 -0
- package/src/model/RateBody.js +70 -0
- package/src/model/ScoreBody.js +63 -0
- package/src/model/Seek.js +82 -0
- package/src/model/SeekOptions.js +216 -0
- package/src/model/SeekResponse.js +281 -0
- package/src/model/SeekResponsePassages.js +99 -0
- package/src/model/SeekResponseVariablesExpanded.js +64 -0
- package/src/model/SeekStreamBody.js +82 -0
- package/src/model/SeekStreamOptions.js +207 -0
- package/src/model/SeekStreamOptionsLastTurn.js +64 -0
- package/src/model/SeekStreamOptionsPersonalize.js +91 -0
- package/src/model/SeekStreamParams.js +64 -0
- package/src/model/SeekStreamUserSession.js +63 -0
- package/src/model/SeekStreamUserSessionMetadata.js +55 -0
- package/src/model/SeekStreamUserSessionSystem.js +55 -0
- package/src/model/TestBody.js +53 -0
- package/src/model/TestBody1.js +55 -0
- package/src/model/TrainBody.js +63 -0
- package/src/model/TranslateBody.js +99 -0
- package/src/model/TranslateGlossaryBody.js +53 -0
- package/src/model/TranslateGlossaryBody1.js +54 -0
- package/test/api/AnalyticsApi.spec.js +60 -0
- package/test/api/CategorizeApi.spec.js +61 -0
- package/test/api/ExtractEntitiesApi.spec.js +61 -0
- package/test/api/GuardrailsApi.spec.js +85 -0
- package/test/api/KeysApi.spec.js +79 -0
- package/test/api/LogsApi.spec.js +88 -0
- package/test/api/MAIstroAgentRatingsApi.spec.js +79 -0
- package/test/api/MAIstroApi.spec.js +180 -0
- package/test/api/SeekAnswerRatingsApi.spec.js +79 -0
- package/test/api/SeekApi.spec.js +81 -0
- package/test/api/ServiceTestApi.spec.js +59 -0
- package/test/api/TestQuestionsApi.spec.js +78 -0
- package/test/api/TrainKBApi.spec.js +59 -0
- package/test/api/TranslateApi.spec.js +143 -0
- package/test/api/UserDataApi.spec.js +60 -0
- package/test/assert-equals.js +81 -0
- package/test/model/AnalyticsBody.spec.js +52 -0
- package/test/model/AnswerRatingsBody.spec.js +58 -0
- package/test/model/CategorizeBody.spec.js +52 -0
- package/test/model/ChatCompletionsBody.spec.js +70 -0
- package/test/model/ChatcompletionsMessages.spec.js +58 -0
- package/test/model/ChatcompletionsTools.spec.js +58 -0
- package/test/model/ExtractBody.spec.js +82 -0
- package/test/model/IdentifysingleBody.spec.js +52 -0
- package/test/model/InlineResponse200.spec.js +52 -0
- package/test/model/InlineResponse2001.spec.js +64 -0
- package/test/model/InlineResponse20010.spec.js +52 -0
- package/test/model/InlineResponse20011.spec.js +70 -0
- package/test/model/InlineResponse20012.spec.js +58 -0
- package/test/model/InlineResponse20013.spec.js +52 -0
- package/test/model/InlineResponse2002.spec.js +76 -0
- package/test/model/InlineResponse2002Render.spec.js +70 -0
- package/test/model/InlineResponse2003.spec.js +52 -0
- package/test/model/InlineResponse2003Data.spec.js +76 -0
- package/test/model/InlineResponse2004.spec.js +76 -0
- package/test/model/InlineResponse2004Choices.spec.js +64 -0
- package/test/model/InlineResponse2004Message.spec.js +58 -0
- package/test/model/InlineResponse2005.spec.js +70 -0
- package/test/model/InlineResponse2005TopIntents.spec.js +58 -0
- package/test/model/InlineResponse2006.spec.js +70 -0
- package/test/model/InlineResponse2006ExtractedEntities.spec.js +52 -0
- package/test/model/InlineResponse2007.spec.js +88 -0
- package/test/model/InlineResponse2007Translations.spec.js +52 -0
- package/test/model/InlineResponse2008.spec.js +58 -0
- package/test/model/InlineResponse2009.spec.js +58 -0
- package/test/model/LogExternalAgentBody.spec.js +82 -0
- package/test/model/LogExternalAgentEntries.spec.js +118 -0
- package/test/model/LogsBody.spec.js +64 -0
- package/test/model/MaistroBatchBody.spec.js +70 -0
- package/test/model/MaistroBody.spec.js +70 -0
- package/test/model/MaistroOptions.spec.js +136 -0
- package/test/model/MaistroRateBody.spec.js +70 -0
- package/test/model/MaistroRatingsBody.spec.js +58 -0
- package/test/model/MaistroStreamBody.spec.js +70 -0
- package/test/model/MaistroStreamOptions.spec.js +130 -0
- package/test/model/PiiBody.spec.js +52 -0
- package/test/model/RateBody.spec.js +64 -0
- package/test/model/ScoreBody.spec.js +58 -0
- package/test/model/Seek.spec.js +70 -0
- package/test/model/SeekOptions.spec.js +160 -0
- package/test/model/SeekResponse.spec.js +208 -0
- package/test/model/SeekResponsePassages.spec.js +82 -0
- package/test/model/SeekResponseVariablesExpanded.spec.js +58 -0
- package/test/model/SeekStreamBody.spec.js +70 -0
- package/test/model/SeekStreamOptions.spec.js +154 -0
- package/test/model/SeekStreamOptionsLastTurn.spec.js +58 -0
- package/test/model/SeekStreamOptionsPersonalize.spec.js +76 -0
- package/test/model/SeekStreamParams.spec.js +58 -0
- package/test/model/SeekStreamUserSession.spec.js +58 -0
- package/test/model/SeekStreamUserSessionMetadata.spec.js +52 -0
- package/test/model/SeekStreamUserSessionSystem.spec.js +52 -0
- package/test/model/TestBody.spec.js +52 -0
- package/test/model/TestBody1.spec.js +52 -0
- package/test/model/TrainBody.spec.js +58 -0
- package/test/model/TranslateBody.spec.js +82 -0
- package/test/model/TranslateGlossaryBody.spec.js +52 -0
- package/test/model/TranslateGlossaryBody1.spec.js +52 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* NeuralSeek
|
|
3
|
+
* NeuralSeek - The business LLM accelerator
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.1
|
|
6
|
+
* Contact: support@NeuralSeek.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
*
|
|
11
|
+
* Swagger Codegen version: 3.0.78
|
|
12
|
+
*
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
import ApiClient from "../ApiClient";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* ServiceTest service.
|
|
20
|
+
* @module ServiceTestApi
|
|
21
|
+
* @version 1.0.1
|
|
22
|
+
*/
|
|
23
|
+
export default class ServiceTestApi {
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a new ServiceTestApi.
|
|
27
|
+
* @alias module:ServiceTestApi
|
|
28
|
+
* @class
|
|
29
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
30
|
+
* default to {@link module:ApiClient#instanc
|
|
31
|
+
e} if unspecified.
|
|
32
|
+
*/
|
|
33
|
+
constructor(apiClient) {
|
|
34
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Callback function to receive the result of the servicetest operation.
|
|
39
|
+
* @callback moduleServiceTestApi~servicetestCallback
|
|
40
|
+
* @param {String} error Error message, if any.
|
|
41
|
+
* @param data This operation does not return a value.
|
|
42
|
+
* @param {String} response The complete HTTP response.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Service check
|
|
47
|
+
* Responds 200
|
|
48
|
+
* @param {module:ServiceTestApi~servicetestCallback} callback The callback function, accepting three arguments: error, data, response
|
|
49
|
+
*/
|
|
50
|
+
servicetest(callback) {
|
|
51
|
+
|
|
52
|
+
let postBody = null;
|
|
53
|
+
|
|
54
|
+
let pathParams = {
|
|
55
|
+
|
|
56
|
+
};
|
|
57
|
+
let queryParams = {
|
|
58
|
+
|
|
59
|
+
};
|
|
60
|
+
let headerParams = {
|
|
61
|
+
|
|
62
|
+
};
|
|
63
|
+
let formParams = {
|
|
64
|
+
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
let authNames = [];
|
|
68
|
+
let contentTypes = [];
|
|
69
|
+
let accepts = [];
|
|
70
|
+
let returnType = null;
|
|
71
|
+
|
|
72
|
+
return this.apiClient.callApi(
|
|
73
|
+
'/test', 'GET',
|
|
74
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
75
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* NeuralSeek
|
|
3
|
+
* NeuralSeek - The business LLM accelerator
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.1
|
|
6
|
+
* Contact: support@NeuralSeek.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
*
|
|
11
|
+
* Swagger Codegen version: 3.0.78
|
|
12
|
+
*
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
import ApiClient from "../ApiClient";
|
|
17
|
+
import TestBody1 from '../model/TestBody1';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* TestQuestions service.
|
|
21
|
+
* @module TestQuestionsApi
|
|
22
|
+
* @version 1.0.1
|
|
23
|
+
*/
|
|
24
|
+
export default class TestQuestionsApi {
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new TestQuestionsApi.
|
|
28
|
+
* @alias module:TestQuestionsApi
|
|
29
|
+
* @class
|
|
30
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
31
|
+
* default to {@link module:ApiClient#instanc
|
|
32
|
+
e} if unspecified.
|
|
33
|
+
*/
|
|
34
|
+
constructor(apiClient) {
|
|
35
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Callback function to receive the result of the getTestResults operation.
|
|
40
|
+
* @callback moduleTestQuestionsApi~getTestResultsCallback
|
|
41
|
+
* @param {String} error Error message, if any.
|
|
42
|
+
* @param data This operation does not return a value.
|
|
43
|
+
* @param {String} response The complete HTTP response.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Get Test Results
|
|
48
|
+
* Retrieve an results from the test endpoint
|
|
49
|
+
* @param {module:TestQuestionsApi~getTestResultsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
50
|
+
*/
|
|
51
|
+
getTestResults(callback) {
|
|
52
|
+
|
|
53
|
+
let postBody = null;
|
|
54
|
+
|
|
55
|
+
let pathParams = {
|
|
56
|
+
|
|
57
|
+
};
|
|
58
|
+
let queryParams = {
|
|
59
|
+
|
|
60
|
+
};
|
|
61
|
+
let headerParams = {
|
|
62
|
+
|
|
63
|
+
};
|
|
64
|
+
let formParams = {
|
|
65
|
+
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
let authNames = ['apiKey'];
|
|
69
|
+
let contentTypes = [];
|
|
70
|
+
let accepts = [];
|
|
71
|
+
let returnType = null;
|
|
72
|
+
|
|
73
|
+
return this.apiClient.callApi(
|
|
74
|
+
'/getTestResults', 'GET',
|
|
75
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
76
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Callback function to receive the result of the test operation.
|
|
81
|
+
* @callback moduleTestQuestionsApi~testCallback
|
|
82
|
+
* @param {String} error Error message, if any.
|
|
83
|
+
* @param data This operation does not return a value.
|
|
84
|
+
* @param {String} response The complete HTTP response.
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Test questions via batch upload
|
|
89
|
+
* Test questions via batch upload
|
|
90
|
+
* @param {Object} opts Optional parameters
|
|
91
|
+
* @param {Blob} opts.file
|
|
92
|
+
* @param {module:model/TestBody1} opts.body The questions csv. Must adhere to the template https://api.neuralseek.com/q.csv After upload you will receive a 202 response and the server will begin processing. Check for your completed results on the getTestResults endpoint.
|
|
93
|
+
* @param {module:TestQuestionsApi~testCallback} callback The callback function, accepting three arguments: error, data, response
|
|
94
|
+
*/
|
|
95
|
+
test(opts, callback) {
|
|
96
|
+
opts = opts || {};
|
|
97
|
+
let postBody = opts['body'];
|
|
98
|
+
|
|
99
|
+
let pathParams = {
|
|
100
|
+
|
|
101
|
+
};
|
|
102
|
+
let queryParams = {
|
|
103
|
+
|
|
104
|
+
};
|
|
105
|
+
let headerParams = {
|
|
106
|
+
|
|
107
|
+
};
|
|
108
|
+
let formParams = {
|
|
109
|
+
'file': opts['file']
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
let authNames = ['apiKey'];
|
|
113
|
+
let contentTypes = ['multipart/form-data', 'application/json'];
|
|
114
|
+
let accepts = [];
|
|
115
|
+
let returnType = null;
|
|
116
|
+
|
|
117
|
+
return this.apiClient.callApi(
|
|
118
|
+
'/test', 'POST',
|
|
119
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
120
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* NeuralSeek
|
|
3
|
+
* NeuralSeek - The business LLM accelerator
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.1
|
|
6
|
+
* Contact: support@NeuralSeek.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
*
|
|
11
|
+
* Swagger Codegen version: 3.0.78
|
|
12
|
+
*
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
import ApiClient from "../ApiClient";
|
|
17
|
+
import TrainBody from '../model/TrainBody';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* TrainKB service.
|
|
21
|
+
* @module TrainKBApi
|
|
22
|
+
* @version 1.0.1
|
|
23
|
+
*/
|
|
24
|
+
export default class TrainKBApi {
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new TrainKBApi.
|
|
28
|
+
* @alias module:TrainKBApi
|
|
29
|
+
* @class
|
|
30
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
31
|
+
* default to {@link module:ApiClient#instanc
|
|
32
|
+
e} if unspecified.
|
|
33
|
+
*/
|
|
34
|
+
constructor(apiClient) {
|
|
35
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Callback function to receive the result of the train operation.
|
|
40
|
+
* @callback moduleTrainKBApi~trainCallback
|
|
41
|
+
* @param {String} error Error message, if any.
|
|
42
|
+
* @param data This operation does not return a value.
|
|
43
|
+
* @param {String} response The complete HTTP response.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Submit KnowledgeBase Training
|
|
48
|
+
* Submit KnowledgeBase Training
|
|
49
|
+
* @param {module:model/TrainBody} body The request object. Must include the question and a context.
|
|
50
|
+
* @param {module:TrainKBApi~trainCallback} callback The callback function, accepting three arguments: error, data, response
|
|
51
|
+
*/
|
|
52
|
+
train(body, callback) {
|
|
53
|
+
|
|
54
|
+
let postBody = body;
|
|
55
|
+
// verify the required parameter 'body' is set
|
|
56
|
+
if (body === undefined || body === null) {
|
|
57
|
+
throw new Error("Missing the required parameter 'body' when calling train");
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
let pathParams = {
|
|
61
|
+
|
|
62
|
+
};
|
|
63
|
+
let queryParams = {
|
|
64
|
+
|
|
65
|
+
};
|
|
66
|
+
let headerParams = {
|
|
67
|
+
|
|
68
|
+
};
|
|
69
|
+
let formParams = {
|
|
70
|
+
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
let authNames = ['apiKey'];
|
|
74
|
+
let contentTypes = ['application/json'];
|
|
75
|
+
let accepts = [];
|
|
76
|
+
let returnType = null;
|
|
77
|
+
|
|
78
|
+
return this.apiClient.callApi(
|
|
79
|
+
'/train', 'POST',
|
|
80
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
81
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* NeuralSeek
|
|
3
|
+
* NeuralSeek - The business LLM accelerator
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.1
|
|
6
|
+
* Contact: support@NeuralSeek.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
*
|
|
11
|
+
* Swagger Codegen version: 3.0.78
|
|
12
|
+
*
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
import ApiClient from "../ApiClient";
|
|
17
|
+
import IdentifysingleBody from '../model/IdentifysingleBody';
|
|
18
|
+
import InlineResponse2007 from '../model/InlineResponse2007';
|
|
19
|
+
import InlineResponse2008 from '../model/InlineResponse2008';
|
|
20
|
+
import InlineResponse2009 from '../model/InlineResponse2009';
|
|
21
|
+
import TranslateBody from '../model/TranslateBody';
|
|
22
|
+
import TranslateGlossaryBody1 from '../model/TranslateGlossaryBody1';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Translate service.
|
|
26
|
+
* @module TranslateApi
|
|
27
|
+
* @version 1.0.1
|
|
28
|
+
*/
|
|
29
|
+
export default class TranslateApi {
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Constructs a new TranslateApi.
|
|
33
|
+
* @alias module:TranslateApi
|
|
34
|
+
* @class
|
|
35
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
36
|
+
* default to {@link module:ApiClient#instanc
|
|
37
|
+
e} if unspecified.
|
|
38
|
+
*/
|
|
39
|
+
constructor(apiClient) {
|
|
40
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Callback function to receive the result of the deleteTranslateGlossary operation.
|
|
45
|
+
* @callback moduleTranslateApi~deleteTranslateGlossaryCallback
|
|
46
|
+
* @param {String} error Error message, if any.
|
|
47
|
+
* @param data This operation does not return a value.
|
|
48
|
+
* @param {String} response The complete HTTP response.
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Delete the custom translations
|
|
53
|
+
* Delete the custom translations
|
|
54
|
+
* @param {module:TranslateApi~deleteTranslateGlossaryCallback} callback The callback function, accepting three arguments: error, data, response
|
|
55
|
+
*/
|
|
56
|
+
deleteTranslateGlossary(callback) {
|
|
57
|
+
|
|
58
|
+
let postBody = null;
|
|
59
|
+
|
|
60
|
+
let pathParams = {
|
|
61
|
+
|
|
62
|
+
};
|
|
63
|
+
let queryParams = {
|
|
64
|
+
|
|
65
|
+
};
|
|
66
|
+
let headerParams = {
|
|
67
|
+
|
|
68
|
+
};
|
|
69
|
+
let formParams = {
|
|
70
|
+
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
let authNames = ['apiKey'];
|
|
74
|
+
let contentTypes = [];
|
|
75
|
+
let accepts = [];
|
|
76
|
+
let returnType = null;
|
|
77
|
+
|
|
78
|
+
return this.apiClient.callApi(
|
|
79
|
+
'/translateGlossary', 'DELETE',
|
|
80
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
81
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Callback function to receive the result of the identifyLanguage operation.
|
|
86
|
+
* @callback moduleTranslateApi~identifyLanguageCallback
|
|
87
|
+
* @param {String} error Error message, if any.
|
|
88
|
+
* @param {Array.<module:model/InlineResponse2008>{ data The data returned by the service call.
|
|
89
|
+
* @param {String} response The complete HTTP response.
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Identify the source language
|
|
94
|
+
* Identify the source language
|
|
95
|
+
* @param {String} body The request object.
|
|
96
|
+
* @param {module:TranslateApi~identifyLanguageCallback} callback The callback function, accepting three arguments: error, data, response
|
|
97
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
98
|
+
*/
|
|
99
|
+
identifyLanguage(body, callback) {
|
|
100
|
+
|
|
101
|
+
let postBody = body;
|
|
102
|
+
// verify the required parameter 'body' is set
|
|
103
|
+
if (body === undefined || body === null) {
|
|
104
|
+
throw new Error("Missing the required parameter 'body' when calling identifyLanguage");
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
let pathParams = {
|
|
108
|
+
|
|
109
|
+
};
|
|
110
|
+
let queryParams = {
|
|
111
|
+
|
|
112
|
+
};
|
|
113
|
+
let headerParams = {
|
|
114
|
+
|
|
115
|
+
};
|
|
116
|
+
let formParams = {
|
|
117
|
+
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
let authNames = ['apiKey'];
|
|
121
|
+
let contentTypes = ['text/plain'];
|
|
122
|
+
let accepts = ['application/json'];
|
|
123
|
+
let returnType = [InlineResponse2008];
|
|
124
|
+
|
|
125
|
+
return this.apiClient.callApi(
|
|
126
|
+
'/identify', 'POST',
|
|
127
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
128
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Callback function to receive the result of the identifyLanguageJSON operation.
|
|
133
|
+
* @callback moduleTranslateApi~identifyLanguageJSONCallback
|
|
134
|
+
* @param {String} error Error message, if any.
|
|
135
|
+
* @param {module:model/InlineResponse2009{ data The data returned by the service call.
|
|
136
|
+
* @param {String} response The complete HTTP response.
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Identify the source language (JSON)
|
|
141
|
+
* Identify the source language (JSON)
|
|
142
|
+
* @param {module:model/IdentifysingleBody} body The request object.
|
|
143
|
+
* @param {module:TranslateApi~identifyLanguageJSONCallback} callback The callback function, accepting three arguments: error, data, response
|
|
144
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
145
|
+
*/
|
|
146
|
+
identifyLanguageJSON(body, callback) {
|
|
147
|
+
|
|
148
|
+
let postBody = body;
|
|
149
|
+
// verify the required parameter 'body' is set
|
|
150
|
+
if (body === undefined || body === null) {
|
|
151
|
+
throw new Error("Missing the required parameter 'body' when calling identifyLanguageJSON");
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
let pathParams = {
|
|
155
|
+
|
|
156
|
+
};
|
|
157
|
+
let queryParams = {
|
|
158
|
+
|
|
159
|
+
};
|
|
160
|
+
let headerParams = {
|
|
161
|
+
|
|
162
|
+
};
|
|
163
|
+
let formParams = {
|
|
164
|
+
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
let authNames = ['apiKey'];
|
|
168
|
+
let contentTypes = ['application/json'];
|
|
169
|
+
let accepts = ['application/json'];
|
|
170
|
+
let returnType = InlineResponse2009;
|
|
171
|
+
|
|
172
|
+
return this.apiClient.callApi(
|
|
173
|
+
'/identify-single', 'POST',
|
|
174
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
175
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Callback function to receive the result of the translate operation.
|
|
180
|
+
* @callback moduleTranslateApi~translateCallback
|
|
181
|
+
* @param {String} error Error message, if any.
|
|
182
|
+
* @param {module:model/InlineResponse2007{ data The data returned by the service call.
|
|
183
|
+
* @param {String} response The complete HTTP response.
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Translate text into a desired language
|
|
188
|
+
* Translate text into a desired language
|
|
189
|
+
* @param {module:model/TranslateBody} body The request object.
|
|
190
|
+
* @param {module:TranslateApi~translateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
191
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
192
|
+
*/
|
|
193
|
+
translate(body, callback) {
|
|
194
|
+
|
|
195
|
+
let postBody = body;
|
|
196
|
+
// verify the required parameter 'body' is set
|
|
197
|
+
if (body === undefined || body === null) {
|
|
198
|
+
throw new Error("Missing the required parameter 'body' when calling translate");
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
let pathParams = {
|
|
202
|
+
|
|
203
|
+
};
|
|
204
|
+
let queryParams = {
|
|
205
|
+
|
|
206
|
+
};
|
|
207
|
+
let headerParams = {
|
|
208
|
+
|
|
209
|
+
};
|
|
210
|
+
let formParams = {
|
|
211
|
+
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
let authNames = ['apiKey'];
|
|
215
|
+
let contentTypes = ['application/json'];
|
|
216
|
+
let accepts = ['application/json'];
|
|
217
|
+
let returnType = InlineResponse2007;
|
|
218
|
+
|
|
219
|
+
return this.apiClient.callApi(
|
|
220
|
+
'/translate', 'POST',
|
|
221
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
222
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Callback function to receive the result of the translateGlossary operation.
|
|
227
|
+
* @callback moduleTranslateApi~translateGlossaryCallback
|
|
228
|
+
* @param {String} error Error message, if any.
|
|
229
|
+
* @param data This operation does not return a value.
|
|
230
|
+
* @param {String} response The complete HTTP response.
|
|
231
|
+
*/
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Add custom translations
|
|
235
|
+
* Add custom translations
|
|
236
|
+
* @param {Blob} file
|
|
237
|
+
* @param {module:model/TranslateGlossaryBody1} body This endpoint will accept either a file upload (TMX or JSON), or a direct JSON payload following IBM's JSON file format https://cloud.ibm.com/docs/language-translator?topic=language-translator-customizing#json. Only one file may be saved. Subsequent files will overwrite.
|
|
238
|
+
* @param {module:TranslateApi~translateGlossaryCallback} callback The callback function, accepting three arguments: error, data, response
|
|
239
|
+
*/
|
|
240
|
+
translateGlossary(file, body, callback) {
|
|
241
|
+
|
|
242
|
+
let postBody = body;
|
|
243
|
+
// verify the required parameter 'file' is set
|
|
244
|
+
if (file === undefined || file === null) {
|
|
245
|
+
throw new Error("Missing the required parameter 'file' when calling translateGlossary");
|
|
246
|
+
}
|
|
247
|
+
// verify the required parameter 'body' is set
|
|
248
|
+
if (body === undefined || body === null) {
|
|
249
|
+
throw new Error("Missing the required parameter 'body' when calling translateGlossary");
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
let pathParams = {
|
|
253
|
+
|
|
254
|
+
};
|
|
255
|
+
let queryParams = {
|
|
256
|
+
|
|
257
|
+
};
|
|
258
|
+
let headerParams = {
|
|
259
|
+
|
|
260
|
+
};
|
|
261
|
+
let formParams = {
|
|
262
|
+
'file': file
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
let authNames = ['apiKey'];
|
|
266
|
+
let contentTypes = ['multipart/form-data', 'application/json'];
|
|
267
|
+
let accepts = [];
|
|
268
|
+
let returnType = null;
|
|
269
|
+
|
|
270
|
+
return this.apiClient.callApi(
|
|
271
|
+
'/translateGlossary', 'POST',
|
|
272
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
273
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* NeuralSeek
|
|
3
|
+
* NeuralSeek - The business LLM accelerator
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.1
|
|
6
|
+
* Contact: support@NeuralSeek.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
*
|
|
11
|
+
* Swagger Codegen version: 3.0.78
|
|
12
|
+
*
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
import ApiClient from "../ApiClient";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* UserData service.
|
|
20
|
+
* @module UserDataApi
|
|
21
|
+
* @version 1.0.1
|
|
22
|
+
*/
|
|
23
|
+
export default class UserDataApi {
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a new UserDataApi.
|
|
27
|
+
* @alias module:UserDataApi
|
|
28
|
+
* @class
|
|
29
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
30
|
+
* default to {@link module:ApiClient#instanc
|
|
31
|
+
e} if unspecified.
|
|
32
|
+
*/
|
|
33
|
+
constructor(apiClient) {
|
|
34
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Callback function to receive the result of the deleteUserData operation.
|
|
39
|
+
* @callback moduleUserDataApi~deleteUserDataCallback
|
|
40
|
+
* @param {String} error Error message, if any.
|
|
41
|
+
* @param data This operation does not return a value.
|
|
42
|
+
* @param {String} response The complete HTTP response.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Delete all user data
|
|
47
|
+
* This endpoint deletes all user data
|
|
48
|
+
* @param {Object} opts Optional parameters
|
|
49
|
+
* @param {Array.<String>} opts.intent The intents to delete. If left blank all intents will be deleted.
|
|
50
|
+
* @param {module:UserDataApi~deleteUserDataCallback} callback The callback function, accepting three arguments: error, data, response
|
|
51
|
+
*/
|
|
52
|
+
deleteUserData(opts, callback) {
|
|
53
|
+
opts = opts || {};
|
|
54
|
+
let postBody = null;
|
|
55
|
+
|
|
56
|
+
let pathParams = {
|
|
57
|
+
|
|
58
|
+
};
|
|
59
|
+
let queryParams = {
|
|
60
|
+
'intent': this.apiClient.buildCollectionParam(opts['intent'], 'multi')
|
|
61
|
+
};
|
|
62
|
+
let headerParams = {
|
|
63
|
+
|
|
64
|
+
};
|
|
65
|
+
let formParams = {
|
|
66
|
+
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
let authNames = ['apiKey'];
|
|
70
|
+
let contentTypes = [];
|
|
71
|
+
let accepts = [];
|
|
72
|
+
let returnType = null;
|
|
73
|
+
|
|
74
|
+
return this.apiClient.callApi(
|
|
75
|
+
'/user_data', 'DELETE',
|
|
76
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
77
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
}
|