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,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
|
+
(function(root, factory) {
|
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
|
18
|
+
// AMD.
|
|
19
|
+
define(['expect.js', '../../src/index'], factory);
|
|
20
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
+
factory(require('expect.js'), require('../../src/index'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
factory(root.expect, root.NeuralSeek);
|
|
26
|
+
}
|
|
27
|
+
}(this, function(expect, NeuralSeek) {
|
|
28
|
+
'use strict';
|
|
29
|
+
|
|
30
|
+
var instance;
|
|
31
|
+
|
|
32
|
+
beforeEach(function() {
|
|
33
|
+
instance = new NeuralSeek.SeekApi();
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
describe('(package)', function() {
|
|
37
|
+
describe('SeekApi', function() {
|
|
38
|
+
describe('seek', function() {
|
|
39
|
+
it('should call seek successfully', function(done) {
|
|
40
|
+
// TODO: uncomment, update parameter values for seek call and complete the assertions
|
|
41
|
+
/*
|
|
42
|
+
|
|
43
|
+
instance.seek(body, function(error, data, response) {
|
|
44
|
+
if (error) {
|
|
45
|
+
done(error);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
// TODO: update response assertions
|
|
49
|
+
expect(data).to.be.a(NeuralSeek.SeekResponse);
|
|
50
|
+
|
|
51
|
+
done();
|
|
52
|
+
});
|
|
53
|
+
*/
|
|
54
|
+
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
55
|
+
done();
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
describe('seekStream', function() {
|
|
59
|
+
it('should call seekStream successfully', function(done) {
|
|
60
|
+
// TODO: uncomment, update parameter values for seekStream call and complete the assertions
|
|
61
|
+
/*
|
|
62
|
+
|
|
63
|
+
instance.seekStream(body, function(error, data, response) {
|
|
64
|
+
if (error) {
|
|
65
|
+
done(error);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
// TODO: update response assertions
|
|
69
|
+
expect(data).to.be.a(NeuralSeek.InlineResponse200);
|
|
70
|
+
|
|
71
|
+
done();
|
|
72
|
+
});
|
|
73
|
+
*/
|
|
74
|
+
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
75
|
+
done();
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
}));
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
(function(root, factory) {
|
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
|
18
|
+
// AMD.
|
|
19
|
+
define(['expect.js', '../../src/index'], factory);
|
|
20
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
+
factory(require('expect.js'), require('../../src/index'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
factory(root.expect, root.NeuralSeek);
|
|
26
|
+
}
|
|
27
|
+
}(this, function(expect, NeuralSeek) {
|
|
28
|
+
'use strict';
|
|
29
|
+
|
|
30
|
+
var instance;
|
|
31
|
+
|
|
32
|
+
beforeEach(function() {
|
|
33
|
+
instance = new NeuralSeek.ServiceTestApi();
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
describe('(package)', function() {
|
|
37
|
+
describe('ServiceTestApi', function() {
|
|
38
|
+
describe('servicetest', function() {
|
|
39
|
+
it('should call servicetest successfully', function(done) {
|
|
40
|
+
// TODO: uncomment servicetest call
|
|
41
|
+
/*
|
|
42
|
+
|
|
43
|
+
instance.servicetest(function(error, data, response) {
|
|
44
|
+
if (error) {
|
|
45
|
+
done(error);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
done();
|
|
50
|
+
});
|
|
51
|
+
*/
|
|
52
|
+
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
53
|
+
done();
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
}));
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
(function(root, factory) {
|
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
|
18
|
+
// AMD.
|
|
19
|
+
define(['expect.js', '../../src/index'], factory);
|
|
20
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
+
factory(require('expect.js'), require('../../src/index'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
factory(root.expect, root.NeuralSeek);
|
|
26
|
+
}
|
|
27
|
+
}(this, function(expect, NeuralSeek) {
|
|
28
|
+
'use strict';
|
|
29
|
+
|
|
30
|
+
var instance;
|
|
31
|
+
|
|
32
|
+
beforeEach(function() {
|
|
33
|
+
instance = new NeuralSeek.TestQuestionsApi();
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
describe('(package)', function() {
|
|
37
|
+
describe('TestQuestionsApi', function() {
|
|
38
|
+
describe('getTestResults', function() {
|
|
39
|
+
it('should call getTestResults successfully', function(done) {
|
|
40
|
+
// TODO: uncomment getTestResults call
|
|
41
|
+
/*
|
|
42
|
+
|
|
43
|
+
instance.getTestResults(function(error, data, response) {
|
|
44
|
+
if (error) {
|
|
45
|
+
done(error);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
done();
|
|
50
|
+
});
|
|
51
|
+
*/
|
|
52
|
+
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
53
|
+
done();
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
describe('test', function() {
|
|
57
|
+
it('should call test successfully', function(done) {
|
|
58
|
+
// TODO: uncomment, update parameter values for test call
|
|
59
|
+
/*
|
|
60
|
+
var opts = {};
|
|
61
|
+
|
|
62
|
+
instance.test(opts, function(error, data, response) {
|
|
63
|
+
if (error) {
|
|
64
|
+
done(error);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
done();
|
|
69
|
+
});
|
|
70
|
+
*/
|
|
71
|
+
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
72
|
+
done();
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
}));
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
(function(root, factory) {
|
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
|
18
|
+
// AMD.
|
|
19
|
+
define(['expect.js', '../../src/index'], factory);
|
|
20
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
+
factory(require('expect.js'), require('../../src/index'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
factory(root.expect, root.NeuralSeek);
|
|
26
|
+
}
|
|
27
|
+
}(this, function(expect, NeuralSeek) {
|
|
28
|
+
'use strict';
|
|
29
|
+
|
|
30
|
+
var instance;
|
|
31
|
+
|
|
32
|
+
beforeEach(function() {
|
|
33
|
+
instance = new NeuralSeek.TrainKBApi();
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
describe('(package)', function() {
|
|
37
|
+
describe('TrainKBApi', function() {
|
|
38
|
+
describe('train', function() {
|
|
39
|
+
it('should call train successfully', function(done) {
|
|
40
|
+
// TODO: uncomment, update parameter values for train call
|
|
41
|
+
/*
|
|
42
|
+
|
|
43
|
+
instance.train(body, function(error, data, response) {
|
|
44
|
+
if (error) {
|
|
45
|
+
done(error);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
done();
|
|
50
|
+
});
|
|
51
|
+
*/
|
|
52
|
+
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
53
|
+
done();
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
}));
|
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
(function(root, factory) {
|
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
|
18
|
+
// AMD.
|
|
19
|
+
define(['expect.js', '../../src/index'], factory);
|
|
20
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
+
factory(require('expect.js'), require('../../src/index'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
factory(root.expect, root.NeuralSeek);
|
|
26
|
+
}
|
|
27
|
+
}(this, function(expect, NeuralSeek) {
|
|
28
|
+
'use strict';
|
|
29
|
+
|
|
30
|
+
var instance;
|
|
31
|
+
|
|
32
|
+
beforeEach(function() {
|
|
33
|
+
instance = new NeuralSeek.TranslateApi();
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
describe('(package)', function() {
|
|
37
|
+
describe('TranslateApi', function() {
|
|
38
|
+
describe('deleteTranslateGlossary', function() {
|
|
39
|
+
it('should call deleteTranslateGlossary successfully', function(done) {
|
|
40
|
+
// TODO: uncomment deleteTranslateGlossary call
|
|
41
|
+
/*
|
|
42
|
+
|
|
43
|
+
instance.deleteTranslateGlossary(function(error, data, response) {
|
|
44
|
+
if (error) {
|
|
45
|
+
done(error);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
done();
|
|
50
|
+
});
|
|
51
|
+
*/
|
|
52
|
+
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
53
|
+
done();
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
describe('identifyLanguage', function() {
|
|
57
|
+
it('should call identifyLanguage successfully', function(done) {
|
|
58
|
+
// TODO: uncomment, update parameter values for identifyLanguage call and complete the assertions
|
|
59
|
+
/*
|
|
60
|
+
|
|
61
|
+
instance.identifyLanguage(body, function(error, data, response) {
|
|
62
|
+
if (error) {
|
|
63
|
+
done(error);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
// TODO: update response assertions
|
|
67
|
+
let dataCtr = data;
|
|
68
|
+
expect(dataCtr).to.be.an(Array);
|
|
69
|
+
expect(dataCtr).to.not.be.empty();
|
|
70
|
+
for (let p in dataCtr) {
|
|
71
|
+
let data = dataCtr[p];
|
|
72
|
+
expect(data).to.be.a(NeuralSeek.InlineResponse2008);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
done();
|
|
76
|
+
});
|
|
77
|
+
*/
|
|
78
|
+
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
79
|
+
done();
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
describe('identifyLanguageJSON', function() {
|
|
83
|
+
it('should call identifyLanguageJSON successfully', function(done) {
|
|
84
|
+
// TODO: uncomment, update parameter values for identifyLanguageJSON call and complete the assertions
|
|
85
|
+
/*
|
|
86
|
+
|
|
87
|
+
instance.identifyLanguageJSON(body, function(error, data, response) {
|
|
88
|
+
if (error) {
|
|
89
|
+
done(error);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
// TODO: update response assertions
|
|
93
|
+
expect(data).to.be.a(NeuralSeek.InlineResponse2009);
|
|
94
|
+
|
|
95
|
+
done();
|
|
96
|
+
});
|
|
97
|
+
*/
|
|
98
|
+
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
99
|
+
done();
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
describe('translate', function() {
|
|
103
|
+
it('should call translate successfully', function(done) {
|
|
104
|
+
// TODO: uncomment, update parameter values for translate call and complete the assertions
|
|
105
|
+
/*
|
|
106
|
+
|
|
107
|
+
instance.translate(body, function(error, data, response) {
|
|
108
|
+
if (error) {
|
|
109
|
+
done(error);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
// TODO: update response assertions
|
|
113
|
+
expect(data).to.be.a(NeuralSeek.InlineResponse2007);
|
|
114
|
+
|
|
115
|
+
done();
|
|
116
|
+
});
|
|
117
|
+
*/
|
|
118
|
+
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
119
|
+
done();
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
describe('translateGlossary', function() {
|
|
123
|
+
it('should call translateGlossary successfully', function(done) {
|
|
124
|
+
// TODO: uncomment, update parameter values for translateGlossary call
|
|
125
|
+
/*
|
|
126
|
+
|
|
127
|
+
instance.translateGlossary(file, body, function(error, data, response) {
|
|
128
|
+
if (error) {
|
|
129
|
+
done(error);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
done();
|
|
134
|
+
});
|
|
135
|
+
*/
|
|
136
|
+
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
137
|
+
done();
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
}));
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
(function(root, factory) {
|
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
|
18
|
+
// AMD.
|
|
19
|
+
define(['expect.js', '../../src/index'], factory);
|
|
20
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
+
factory(require('expect.js'), require('../../src/index'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
factory(root.expect, root.NeuralSeek);
|
|
26
|
+
}
|
|
27
|
+
}(this, function(expect, NeuralSeek) {
|
|
28
|
+
'use strict';
|
|
29
|
+
|
|
30
|
+
var instance;
|
|
31
|
+
|
|
32
|
+
beforeEach(function() {
|
|
33
|
+
instance = new NeuralSeek.UserDataApi();
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
describe('(package)', function() {
|
|
37
|
+
describe('UserDataApi', function() {
|
|
38
|
+
describe('deleteUserData', function() {
|
|
39
|
+
it('should call deleteUserData successfully', function(done) {
|
|
40
|
+
// TODO: uncomment, update parameter values for deleteUserData call
|
|
41
|
+
/*
|
|
42
|
+
var opts = {};
|
|
43
|
+
|
|
44
|
+
instance.deleteUserData(opts, function(error, data, response) {
|
|
45
|
+
if (error) {
|
|
46
|
+
done(error);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
done();
|
|
51
|
+
});
|
|
52
|
+
*/
|
|
53
|
+
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
54
|
+
done();
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
}));
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
(function(root, factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd) {
|
|
3
|
+
// AMD.
|
|
4
|
+
define(factory);
|
|
5
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
6
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
7
|
+
module.exports = factory();
|
|
8
|
+
} else {
|
|
9
|
+
// Browser globals (root is window)
|
|
10
|
+
root.assertEquals = factory();
|
|
11
|
+
}
|
|
12
|
+
}(this, function() {
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
var assertEquals = function(expected, actual, ptr) {
|
|
16
|
+
if (!ptr)
|
|
17
|
+
ptr = "";
|
|
18
|
+
if (actual === expected)
|
|
19
|
+
return;
|
|
20
|
+
if (expected instanceof Date || actual instanceof Date) {
|
|
21
|
+
expected = toISODateString(expected);
|
|
22
|
+
actual = toISODateString(actual);
|
|
23
|
+
if (actual !== expected)
|
|
24
|
+
fail(expected, actual, ptr, "date value incorrect;");
|
|
25
|
+
}
|
|
26
|
+
if (!expected || !actual || typeof expected != 'object' && typeof actual != 'object') {
|
|
27
|
+
if (typeof actual != typeof expected)
|
|
28
|
+
fail(typeof expected, typeof actual, ptr, "value type incorrect;");
|
|
29
|
+
if (actual != expected)
|
|
30
|
+
fail(expected, actual, ptr, "value incorrect;");
|
|
31
|
+
}
|
|
32
|
+
return checkObject(expected, actual, ptr);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function toISODateString(value) {
|
|
36
|
+
if (value instanceof Date) {
|
|
37
|
+
// JavaScript's ISO string contains a milliseconds component that must be stripped out.
|
|
38
|
+
value = value.toISOString().replace('.000', '');
|
|
39
|
+
}
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function checkObject(expected, actual, ptr) {
|
|
44
|
+
if (undefOrNull(expected) || undefOrNull(actual))
|
|
45
|
+
fail(expected, actual, ptr, "missing value;");
|
|
46
|
+
if (typeof expected !== typeof actual)
|
|
47
|
+
fail(typeof expected, typeof actual, ptr, "wrong type;");
|
|
48
|
+
if (expected.prototype !== actual.prototype)
|
|
49
|
+
fail(expected.prototype, actual.prototype, ptr, "wrong prototype;");
|
|
50
|
+
try {
|
|
51
|
+
var expectedKeys = Object.keys(expected);
|
|
52
|
+
var actualKeys = Object.keys(actual);
|
|
53
|
+
} catch (e) {
|
|
54
|
+
fail(expectedKeys, actualKeys, ptr, "wrong keys;");
|
|
55
|
+
}
|
|
56
|
+
if (actualKeys.length != expectedKeys.length)
|
|
57
|
+
fail(expectedKeys.length, actualKeys.length, ptr, "key count incorrect;");
|
|
58
|
+
expectedKeys.sort();
|
|
59
|
+
actualKeys.sort();
|
|
60
|
+
for (var i = 0; i < expectedKeys.length; i++) {
|
|
61
|
+
if (actualKeys[i] != expectedKeys[i])
|
|
62
|
+
fail(expectedKeys, actualKeys, ptr, "wrong keys;");
|
|
63
|
+
}
|
|
64
|
+
for (i = 0; i < expectedKeys.length; i++) {
|
|
65
|
+
var key = expectedKeys[i];
|
|
66
|
+
assertEquals(expected[key], actual[key], ptr + '/' + key);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function undefOrNull(v) {
|
|
71
|
+
return v === undefined || v === null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function fail(expected, actual, ptr, msg) {
|
|
75
|
+
var text = ptr + ' ' + msg + " expected: " + expected + ", actual: " + actual;
|
|
76
|
+
console.log(text);
|
|
77
|
+
throw new Error(text);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return assertEquals;
|
|
81
|
+
}));
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
(function(root, factory) {
|
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
|
18
|
+
// AMD.
|
|
19
|
+
define(['expect.js', '../../src/index'], factory);
|
|
20
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
+
factory(require('expect.js'), require('../../src/index'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
factory(root.expect, root.NeuralSeek);
|
|
26
|
+
}
|
|
27
|
+
}(this, function(expect, NeuralSeek) {
|
|
28
|
+
'use strict';
|
|
29
|
+
|
|
30
|
+
var instance;
|
|
31
|
+
|
|
32
|
+
describe('(package)', function() {
|
|
33
|
+
describe('AnalyticsBody', function() {
|
|
34
|
+
beforeEach(function() {
|
|
35
|
+
instance = new NeuralSeek.AnalyticsBody();
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
it('should create an instance of AnalyticsBody', function() {
|
|
39
|
+
// TODO: update the code to test AnalyticsBody
|
|
40
|
+
expect(instance).to.be.a(NeuralSeek.AnalyticsBody);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it('should have the property count (base name: "count")', function() {
|
|
44
|
+
// TODO: update the code to test the property count
|
|
45
|
+
expect(instance).to.have.property('count');
|
|
46
|
+
// expect(instance.count).to.be(expectedValueLiteral);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
}));
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
(function(root, factory) {
|
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
|
18
|
+
// AMD.
|
|
19
|
+
define(['expect.js', '../../src/index'], factory);
|
|
20
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
+
factory(require('expect.js'), require('../../src/index'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
factory(root.expect, root.NeuralSeek);
|
|
26
|
+
}
|
|
27
|
+
}(this, function(expect, NeuralSeek) {
|
|
28
|
+
'use strict';
|
|
29
|
+
|
|
30
|
+
var instance;
|
|
31
|
+
|
|
32
|
+
describe('(package)', function() {
|
|
33
|
+
describe('AnswerRatingsBody', function() {
|
|
34
|
+
beforeEach(function() {
|
|
35
|
+
instance = new NeuralSeek.AnswerRatingsBody();
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
it('should create an instance of AnswerRatingsBody', function() {
|
|
39
|
+
// TODO: update the code to test AnswerRatingsBody
|
|
40
|
+
expect(instance).to.be.a(NeuralSeek.AnswerRatingsBody);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it('should have the property answerId (base name: "answerId")', function() {
|
|
44
|
+
// TODO: update the code to test the property answerId
|
|
45
|
+
expect(instance).to.have.property('answerId');
|
|
46
|
+
// expect(instance.answerId).to.be(expectedValueLiteral);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
it('should have the property _number (base name: "number")', function() {
|
|
50
|
+
// TODO: update the code to test the property _number
|
|
51
|
+
expect(instance).to.have.property('_number');
|
|
52
|
+
// expect(instance._number).to.be(expectedValueLiteral);
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
}));
|