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,87 @@
|
|
|
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 ExtractBody from '../model/ExtractBody';
|
|
18
|
+
import InlineResponse2006 from '../model/InlineResponse2006';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* ExtractEntities service.
|
|
22
|
+
* @module ExtractEntitiesApi
|
|
23
|
+
* @version 1.0.1
|
|
24
|
+
*/
|
|
25
|
+
export default class ExtractEntitiesApi {
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Constructs a new ExtractEntitiesApi.
|
|
29
|
+
* @alias module:ExtractEntitiesApi
|
|
30
|
+
* @class
|
|
31
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
32
|
+
* default to {@link module:ApiClient#instanc
|
|
33
|
+
e} if unspecified.
|
|
34
|
+
*/
|
|
35
|
+
constructor(apiClient) {
|
|
36
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Callback function to receive the result of the extractEntities operation.
|
|
41
|
+
* @callback moduleExtractEntitiesApi~extractEntitiesCallback
|
|
42
|
+
* @param {String} error Error message, if any.
|
|
43
|
+
* @param {module:model/InlineResponse2006{ data The data returned by the service call.
|
|
44
|
+
* @param {String} response The complete HTTP response.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Extract entitites from text
|
|
49
|
+
* Extract entitites from text
|
|
50
|
+
* @param {module:model/ExtractBody} body The request object.
|
|
51
|
+
* @param {module:ExtractEntitiesApi~extractEntitiesCallback} callback The callback function, accepting three arguments: error, data, response
|
|
52
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
53
|
+
*/
|
|
54
|
+
extractEntities(body, callback) {
|
|
55
|
+
|
|
56
|
+
let postBody = body;
|
|
57
|
+
// verify the required parameter 'body' is set
|
|
58
|
+
if (body === undefined || body === null) {
|
|
59
|
+
throw new Error("Missing the required parameter 'body' when calling extractEntities");
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let pathParams = {
|
|
63
|
+
|
|
64
|
+
};
|
|
65
|
+
let queryParams = {
|
|
66
|
+
|
|
67
|
+
};
|
|
68
|
+
let headerParams = {
|
|
69
|
+
|
|
70
|
+
};
|
|
71
|
+
let formParams = {
|
|
72
|
+
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
let authNames = ['apiKey'];
|
|
76
|
+
let contentTypes = ['application/json'];
|
|
77
|
+
let accepts = ['application/json'];
|
|
78
|
+
let returnType = InlineResponse2006;
|
|
79
|
+
|
|
80
|
+
return this.apiClient.callApi(
|
|
81
|
+
'/extract', 'POST',
|
|
82
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
83
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
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 InlineResponse20010 from '../model/InlineResponse20010';
|
|
18
|
+
import PiiBody from '../model/PiiBody';
|
|
19
|
+
import ScoreBody from '../model/ScoreBody';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Guardrails service.
|
|
23
|
+
* @module GuardrailsApi
|
|
24
|
+
* @version 1.0.1
|
|
25
|
+
*/
|
|
26
|
+
export default class GuardrailsApi {
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new GuardrailsApi.
|
|
30
|
+
* @alias module:GuardrailsApi
|
|
31
|
+
* @class
|
|
32
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
33
|
+
* default to {@link module:ApiClient#instanc
|
|
34
|
+
e} if unspecified.
|
|
35
|
+
*/
|
|
36
|
+
constructor(apiClient) {
|
|
37
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Callback function to receive the result of the pii operation.
|
|
42
|
+
* @callback moduleGuardrailsApi~piiCallback
|
|
43
|
+
* @param {String} error Error message, if any.
|
|
44
|
+
* @param {Array.<module:model/InlineResponse20010>{ data The data returned by the service call.
|
|
45
|
+
* @param {String} response The complete HTTP response.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Find PII in a user utterance
|
|
50
|
+
* Find PII in a user utterance
|
|
51
|
+
* @param {module:model/PiiBody} body The request object.
|
|
52
|
+
* @param {module:GuardrailsApi~piiCallback} callback The callback function, accepting three arguments: error, data, response
|
|
53
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
54
|
+
*/
|
|
55
|
+
pii(body, callback) {
|
|
56
|
+
|
|
57
|
+
let postBody = body;
|
|
58
|
+
// verify the required parameter 'body' is set
|
|
59
|
+
if (body === undefined || body === null) {
|
|
60
|
+
throw new Error("Missing the required parameter 'body' when calling pii");
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
let pathParams = {
|
|
64
|
+
|
|
65
|
+
};
|
|
66
|
+
let queryParams = {
|
|
67
|
+
|
|
68
|
+
};
|
|
69
|
+
let headerParams = {
|
|
70
|
+
|
|
71
|
+
};
|
|
72
|
+
let formParams = {
|
|
73
|
+
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
let authNames = ['apiKey'];
|
|
77
|
+
let contentTypes = ['application/json'];
|
|
78
|
+
let accepts = ['application/json'];
|
|
79
|
+
let returnType = [InlineResponse20010];
|
|
80
|
+
|
|
81
|
+
return this.apiClient.callApi(
|
|
82
|
+
'/pii', 'POST',
|
|
83
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
84
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Callback function to receive the result of the score operation.
|
|
89
|
+
* @callback moduleGuardrailsApi~scoreCallback
|
|
90
|
+
* @param {String} error Error message, if any.
|
|
91
|
+
* @param data This operation does not return a value.
|
|
92
|
+
* @param {String} response The complete HTTP response.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Run the Semantic Scoring model on text against an array of passages
|
|
97
|
+
* Run the Semantic Scoring model on text against an array of passages
|
|
98
|
+
* @param {module:model/ScoreBody} body The request object. Must include the question and a context.
|
|
99
|
+
* @param {module:GuardrailsApi~scoreCallback} callback The callback function, accepting three arguments: error, data, response
|
|
100
|
+
*/
|
|
101
|
+
score(body, callback) {
|
|
102
|
+
|
|
103
|
+
let postBody = body;
|
|
104
|
+
// verify the required parameter 'body' is set
|
|
105
|
+
if (body === undefined || body === null) {
|
|
106
|
+
throw new Error("Missing the required parameter 'body' when calling score");
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
let pathParams = {
|
|
110
|
+
|
|
111
|
+
};
|
|
112
|
+
let queryParams = {
|
|
113
|
+
|
|
114
|
+
};
|
|
115
|
+
let headerParams = {
|
|
116
|
+
|
|
117
|
+
};
|
|
118
|
+
let formParams = {
|
|
119
|
+
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
let authNames = ['apiKey'];
|
|
123
|
+
let contentTypes = ['application/json'];
|
|
124
|
+
let accepts = [];
|
|
125
|
+
let returnType = null;
|
|
126
|
+
|
|
127
|
+
return this.apiClient.callApi(
|
|
128
|
+
'/score', 'POST',
|
|
129
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
130
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
}
|
package/src/KeysApi.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
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 InlineResponse20013 from '../model/InlineResponse20013';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Keys service.
|
|
21
|
+
* @module KeysApi
|
|
22
|
+
* @version 1.0.1
|
|
23
|
+
*/
|
|
24
|
+
export default class KeysApi {
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new KeysApi.
|
|
28
|
+
* @alias module:KeysApi
|
|
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 keycheck operation.
|
|
40
|
+
* @callback moduleKeysApi~keycheckCallback
|
|
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
|
+
* Validate an api key
|
|
48
|
+
* Validate an api key
|
|
49
|
+
* @param {module:KeysApi~keycheckCallback} callback The callback function, accepting three arguments: error, data, response
|
|
50
|
+
*/
|
|
51
|
+
keycheck(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
|
+
'/keycheck', 'POST',
|
|
75
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
76
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Callback function to receive the result of the otp operation.
|
|
81
|
+
* @callback moduleKeysApi~otpCallback
|
|
82
|
+
* @param {String} error Error message, if any.
|
|
83
|
+
* @param {module:model/InlineResponse20013{ data The data returned by the service call.
|
|
84
|
+
* @param {String} response The complete HTTP response.
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Create a One Time Password
|
|
89
|
+
* Create a One Time Password for use instead of an api key in unsecure environments, such as the browser. The password will expire after one use, and is valid for 30 minutes. This password can only be used for seek, mAIstro, extract, categorize, score, and logs operations.
|
|
90
|
+
* @param {module:KeysApi~otpCallback} callback The callback function, accepting three arguments: error, data, response
|
|
91
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
92
|
+
*/
|
|
93
|
+
otp(callback) {
|
|
94
|
+
|
|
95
|
+
let postBody = null;
|
|
96
|
+
|
|
97
|
+
let pathParams = {
|
|
98
|
+
|
|
99
|
+
};
|
|
100
|
+
let queryParams = {
|
|
101
|
+
|
|
102
|
+
};
|
|
103
|
+
let headerParams = {
|
|
104
|
+
|
|
105
|
+
};
|
|
106
|
+
let formParams = {
|
|
107
|
+
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
let authNames = ['apiKey'];
|
|
111
|
+
let contentTypes = [];
|
|
112
|
+
let accepts = ['application/json'];
|
|
113
|
+
let returnType = InlineResponse20013;
|
|
114
|
+
|
|
115
|
+
return this.apiClient.callApi(
|
|
116
|
+
'/otp', 'POST',
|
|
117
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
118
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
}
|
package/src/LogsApi.js
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
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 InlineResponse20011 from '../model/InlineResponse20011';
|
|
18
|
+
import InlineResponse20012 from '../model/InlineResponse20012';
|
|
19
|
+
import LogExternalAgentBody from '../model/LogExternalAgentBody';
|
|
20
|
+
import LogsBody from '../model/LogsBody';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Logs service.
|
|
24
|
+
* @module LogsApi
|
|
25
|
+
* @version 1.0.1
|
|
26
|
+
*/
|
|
27
|
+
export default class LogsApi {
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a new LogsApi.
|
|
31
|
+
* @alias module:LogsApi
|
|
32
|
+
* @class
|
|
33
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
34
|
+
* default to {@link module:ApiClient#instanc
|
|
35
|
+
e} if unspecified.
|
|
36
|
+
*/
|
|
37
|
+
constructor(apiClient) {
|
|
38
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Callback function to receive the result of the logExternalAgent operation.
|
|
43
|
+
* @callback moduleLogsApi~logExternalAgentCallback
|
|
44
|
+
* @param {String} error Error message, if any.
|
|
45
|
+
* @param {module:model/InlineResponse20012{ data The data returned by the service call.
|
|
46
|
+
* @param {String} response The complete HTTP response.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Log external agent execution details
|
|
51
|
+
* Records various timing and performance metrics for external agent execution
|
|
52
|
+
* @param {module:model/LogExternalAgentBody} body
|
|
53
|
+
* @param {module:LogsApi~logExternalAgentCallback} callback The callback function, accepting three arguments: error, data, response
|
|
54
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
55
|
+
*/
|
|
56
|
+
logExternalAgent(body, callback) {
|
|
57
|
+
|
|
58
|
+
let postBody = body;
|
|
59
|
+
// verify the required parameter 'body' is set
|
|
60
|
+
if (body === undefined || body === null) {
|
|
61
|
+
throw new Error("Missing the required parameter 'body' when calling logExternalAgent");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
let pathParams = {
|
|
65
|
+
|
|
66
|
+
};
|
|
67
|
+
let queryParams = {
|
|
68
|
+
|
|
69
|
+
};
|
|
70
|
+
let headerParams = {
|
|
71
|
+
|
|
72
|
+
};
|
|
73
|
+
let formParams = {
|
|
74
|
+
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
let authNames = ['apiKey'];
|
|
78
|
+
let contentTypes = ['application/json'];
|
|
79
|
+
let accepts = ['application/json'];
|
|
80
|
+
let returnType = InlineResponse20012;
|
|
81
|
+
|
|
82
|
+
return this.apiClient.callApi(
|
|
83
|
+
'/logExternalAgent', 'POST',
|
|
84
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
85
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Callback function to receive the result of the logs operation.
|
|
90
|
+
* @callback moduleLogsApi~logsCallback
|
|
91
|
+
* @param {String} error Error message, if any.
|
|
92
|
+
* @param {Array.<module:model/InlineResponse20011>{ data The data returned by the service call.
|
|
93
|
+
* @param {String} response The complete HTTP response.
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Instance Logs
|
|
98
|
+
* Retrieve logs for your instance
|
|
99
|
+
* @param {Object} opts Optional parameters
|
|
100
|
+
* @param {module:model/LogsBody} opts.body The request object.
|
|
101
|
+
* @param {module:LogsApi~logsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
102
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
103
|
+
*/
|
|
104
|
+
logs(opts, callback) {
|
|
105
|
+
opts = opts || {};
|
|
106
|
+
let postBody = opts['body'];
|
|
107
|
+
|
|
108
|
+
let pathParams = {
|
|
109
|
+
|
|
110
|
+
};
|
|
111
|
+
let queryParams = {
|
|
112
|
+
|
|
113
|
+
};
|
|
114
|
+
let headerParams = {
|
|
115
|
+
|
|
116
|
+
};
|
|
117
|
+
let formParams = {
|
|
118
|
+
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
let authNames = ['apiKey'];
|
|
122
|
+
let contentTypes = ['application/json'];
|
|
123
|
+
let accepts = ['application/json'];
|
|
124
|
+
let returnType = [InlineResponse20011];
|
|
125
|
+
|
|
126
|
+
return this.apiClient.callApi(
|
|
127
|
+
'/logs', 'POST',
|
|
128
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
129
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
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 InlineResponse2001 from '../model/InlineResponse2001';
|
|
18
|
+
import MaistroRateBody from '../model/MaistroRateBody';
|
|
19
|
+
import MaistroRatingsBody from '../model/MaistroRatingsBody';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* MAIstroAgentRatings service.
|
|
23
|
+
* @module MAIstroAgentRatingsApi
|
|
24
|
+
* @version 1.0.1
|
|
25
|
+
*/
|
|
26
|
+
export default class MAIstroAgentRatingsApi {
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new MAIstroAgentRatingsApi.
|
|
30
|
+
* @alias module:MAIstroAgentRatingsApi
|
|
31
|
+
* @class
|
|
32
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
33
|
+
* default to {@link module:ApiClient#instanc
|
|
34
|
+
e} if unspecified.
|
|
35
|
+
*/
|
|
36
|
+
constructor(apiClient) {
|
|
37
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Callback function to receive the result of the maistroRate operation.
|
|
42
|
+
* @callback moduleMAIstroAgentRatingsApi~maistroRateCallback
|
|
43
|
+
* @param {String} error Error message, if any.
|
|
44
|
+
* @param data This operation does not return a value.
|
|
45
|
+
* @param {String} response The complete HTTP response.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Rate an Agent
|
|
50
|
+
* Allow users to give feedback on an Agent run
|
|
51
|
+
* @param {module:model/MaistroRateBody} body The request object.
|
|
52
|
+
* @param {module:MAIstroAgentRatingsApi~maistroRateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
53
|
+
*/
|
|
54
|
+
maistroRate(body, callback) {
|
|
55
|
+
|
|
56
|
+
let postBody = body;
|
|
57
|
+
// verify the required parameter 'body' is set
|
|
58
|
+
if (body === undefined || body === null) {
|
|
59
|
+
throw new Error("Missing the required parameter 'body' when calling maistroRate");
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let pathParams = {
|
|
63
|
+
|
|
64
|
+
};
|
|
65
|
+
let queryParams = {
|
|
66
|
+
|
|
67
|
+
};
|
|
68
|
+
let headerParams = {
|
|
69
|
+
|
|
70
|
+
};
|
|
71
|
+
let formParams = {
|
|
72
|
+
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
let authNames = ['apiKey'];
|
|
76
|
+
let contentTypes = ['application/json'];
|
|
77
|
+
let accepts = [];
|
|
78
|
+
let returnType = null;
|
|
79
|
+
|
|
80
|
+
return this.apiClient.callApi(
|
|
81
|
+
'/maistroRate', 'POST',
|
|
82
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
83
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Callback function to receive the result of the maistroRatings operation.
|
|
88
|
+
* @callback moduleMAIstroAgentRatingsApi~maistroRatingsCallback
|
|
89
|
+
* @param {String} error Error message, if any.
|
|
90
|
+
* @param {module:model/InlineResponse2001{ data The data returned by the service call.
|
|
91
|
+
* @param {String} response The complete HTTP response.
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Get the average user ratings for an agent
|
|
96
|
+
* Get the average user ratings for an agent
|
|
97
|
+
* @param {module:model/MaistroRatingsBody} body The request object.
|
|
98
|
+
* @param {module:MAIstroAgentRatingsApi~maistroRatingsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
99
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
100
|
+
*/
|
|
101
|
+
maistroRatings(body, callback) {
|
|
102
|
+
|
|
103
|
+
let postBody = body;
|
|
104
|
+
// verify the required parameter 'body' is set
|
|
105
|
+
if (body === undefined || body === null) {
|
|
106
|
+
throw new Error("Missing the required parameter 'body' when calling maistroRatings");
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
let pathParams = {
|
|
110
|
+
|
|
111
|
+
};
|
|
112
|
+
let queryParams = {
|
|
113
|
+
|
|
114
|
+
};
|
|
115
|
+
let headerParams = {
|
|
116
|
+
|
|
117
|
+
};
|
|
118
|
+
let formParams = {
|
|
119
|
+
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
let authNames = ['apiKey'];
|
|
123
|
+
let contentTypes = ['application/json'];
|
|
124
|
+
let accepts = ['application/json'];
|
|
125
|
+
let returnType = InlineResponse2001;
|
|
126
|
+
|
|
127
|
+
return this.apiClient.callApi(
|
|
128
|
+
'/maistroRatings', 'POST',
|
|
129
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
130
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
}
|