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,55 @@
|
|
|
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
|
+
* The CategorizeBody model module.
|
|
20
|
+
* @module model/CategorizeBody
|
|
21
|
+
* @version 1.0.1
|
|
22
|
+
*/
|
|
23
|
+
export default class CategorizeBody {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>CategorizeBody</code>.
|
|
26
|
+
* @alias module:model/CategorizeBody
|
|
27
|
+
* @class
|
|
28
|
+
*/
|
|
29
|
+
constructor() {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a <code>CategorizeBody</code> from a plain JavaScript object, optionally creating a new instance.
|
|
34
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
35
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
36
|
+
* @param {module:model/CategorizeBody} obj Optional instance to populate.
|
|
37
|
+
* @return {module:model/CategorizeBody} The populated <code>CategorizeBody</code> instance.
|
|
38
|
+
*/
|
|
39
|
+
static constructFromObject(data, obj) {
|
|
40
|
+
if (data) {
|
|
41
|
+
obj = obj || new CategorizeBody();
|
|
42
|
+
if (data.hasOwnProperty('question'))
|
|
43
|
+
obj.question = ApiClient.convertToType(data['question'], 'String');
|
|
44
|
+
}
|
|
45
|
+
return obj;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The text to categorize
|
|
51
|
+
* @member {String} question
|
|
52
|
+
* @default ''
|
|
53
|
+
*/
|
|
54
|
+
CategorizeBody.prototype.question = '';
|
|
55
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
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 ChatcompletionsMessages from './ChatcompletionsMessages';
|
|
18
|
+
import ChatcompletionsTools from './ChatcompletionsTools';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The ChatCompletionsBody model module.
|
|
22
|
+
* @module model/ChatCompletionsBody
|
|
23
|
+
* @version 1.0.1
|
|
24
|
+
*/
|
|
25
|
+
export default class ChatCompletionsBody {
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new <code>ChatCompletionsBody</code>.
|
|
28
|
+
* @alias module:model/ChatCompletionsBody
|
|
29
|
+
* @class
|
|
30
|
+
* @param model {String} The mAIstro agent to call
|
|
31
|
+
*/
|
|
32
|
+
constructor(model) {
|
|
33
|
+
this.model = model;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a <code>ChatCompletionsBody</code> from a plain JavaScript object, optionally creating a new instance.
|
|
38
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
39
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
40
|
+
* @param {module:model/ChatCompletionsBody} obj Optional instance to populate.
|
|
41
|
+
* @return {module:model/ChatCompletionsBody} The populated <code>ChatCompletionsBody</code> instance.
|
|
42
|
+
*/
|
|
43
|
+
static constructFromObject(data, obj) {
|
|
44
|
+
if (data) {
|
|
45
|
+
obj = obj || new ChatCompletionsBody();
|
|
46
|
+
if (data.hasOwnProperty('model'))
|
|
47
|
+
obj.model = ApiClient.convertToType(data['model'], 'String');
|
|
48
|
+
if (data.hasOwnProperty('messages'))
|
|
49
|
+
obj.messages = ApiClient.convertToType(data['messages'], [ChatcompletionsMessages]);
|
|
50
|
+
if (data.hasOwnProperty('tools'))
|
|
51
|
+
obj.tools = ChatcompletionsTools.constructFromObject(data['tools']);
|
|
52
|
+
if (data.hasOwnProperty('stream'))
|
|
53
|
+
obj.stream = ApiClient.convertToType(data['stream'], 'Boolean');
|
|
54
|
+
}
|
|
55
|
+
return obj;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The mAIstro agent to call
|
|
61
|
+
* @member {String} model
|
|
62
|
+
*/
|
|
63
|
+
ChatCompletionsBody.prototype.model = undefined;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @member {Array.<module:model/ChatcompletionsMessages>} messages
|
|
67
|
+
*/
|
|
68
|
+
ChatCompletionsBody.prototype.messages = undefined;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @member {module:model/ChatcompletionsTools} tools
|
|
72
|
+
*/
|
|
73
|
+
ChatCompletionsBody.prototype.tools = undefined;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Whether to stream responses as server-sent events
|
|
77
|
+
* @member {Boolean} stream
|
|
78
|
+
*/
|
|
79
|
+
ChatCompletionsBody.prototype.stream = undefined;
|
|
80
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
* The ChatcompletionsMessages model module.
|
|
20
|
+
* @module model/ChatcompletionsMessages
|
|
21
|
+
* @version 1.0.1
|
|
22
|
+
*/
|
|
23
|
+
export default class ChatcompletionsMessages {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>ChatcompletionsMessages</code>.
|
|
26
|
+
* @alias module:model/ChatcompletionsMessages
|
|
27
|
+
* @class
|
|
28
|
+
*/
|
|
29
|
+
constructor() {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a <code>ChatcompletionsMessages</code> from a plain JavaScript object, optionally creating a new instance.
|
|
34
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
35
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
36
|
+
* @param {module:model/ChatcompletionsMessages} obj Optional instance to populate.
|
|
37
|
+
* @return {module:model/ChatcompletionsMessages} The populated <code>ChatcompletionsMessages</code> instance.
|
|
38
|
+
*/
|
|
39
|
+
static constructFromObject(data, obj) {
|
|
40
|
+
if (data) {
|
|
41
|
+
obj = obj || new ChatcompletionsMessages();
|
|
42
|
+
if (data.hasOwnProperty('role'))
|
|
43
|
+
obj.role = ApiClient.convertToType(data['role'], 'String');
|
|
44
|
+
if (data.hasOwnProperty('content'))
|
|
45
|
+
obj.content = ApiClient.convertToType(data['content'], 'String');
|
|
46
|
+
}
|
|
47
|
+
return obj;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Allowed values for the <code>role</code> property.
|
|
53
|
+
* @enum {String}
|
|
54
|
+
* @readonly
|
|
55
|
+
*/
|
|
56
|
+
ChatcompletionsMessages.RoleEnum = {
|
|
57
|
+
/**
|
|
58
|
+
* value: "user"
|
|
59
|
+
* @const
|
|
60
|
+
*/
|
|
61
|
+
user: "user",
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* value: "assistant"
|
|
65
|
+
* @const
|
|
66
|
+
*/
|
|
67
|
+
assistant: "assistant",
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* value: "system"
|
|
71
|
+
* @const
|
|
72
|
+
*/
|
|
73
|
+
system: "system",
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* value: "tool"
|
|
77
|
+
* @const
|
|
78
|
+
*/
|
|
79
|
+
tool: "tool"
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* The role of the message sender
|
|
83
|
+
* @member {module:model/ChatcompletionsMessages.RoleEnum} role
|
|
84
|
+
*/
|
|
85
|
+
ChatcompletionsMessages.prototype.role = undefined;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The content of the message
|
|
89
|
+
* @member {String} content
|
|
90
|
+
*/
|
|
91
|
+
ChatcompletionsMessages.prototype.content = undefined;
|
|
92
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 SeekStreamParams from './SeekStreamParams';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The ChatcompletionsTools model module.
|
|
21
|
+
* @module model/ChatcompletionsTools
|
|
22
|
+
* @version 1.0.1
|
|
23
|
+
*/
|
|
24
|
+
export default class ChatcompletionsTools {
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a new <code>ChatcompletionsTools</code>.
|
|
27
|
+
* @alias module:model/ChatcompletionsTools
|
|
28
|
+
* @class
|
|
29
|
+
*/
|
|
30
|
+
constructor() {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a <code>ChatcompletionsTools</code> from a plain JavaScript object, optionally creating a new instance.
|
|
35
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
36
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
37
|
+
* @param {module:model/ChatcompletionsTools} obj Optional instance to populate.
|
|
38
|
+
* @return {module:model/ChatcompletionsTools} The populated <code>ChatcompletionsTools</code> instance.
|
|
39
|
+
*/
|
|
40
|
+
static constructFromObject(data, obj) {
|
|
41
|
+
if (data) {
|
|
42
|
+
obj = obj || new ChatcompletionsTools();
|
|
43
|
+
if (data.hasOwnProperty('type'))
|
|
44
|
+
obj.type = ApiClient.convertToType(data['type'], 'String');
|
|
45
|
+
if (data.hasOwnProperty('params'))
|
|
46
|
+
obj.params = ApiClient.convertToType(data['params'], [SeekStreamParams]);
|
|
47
|
+
}
|
|
48
|
+
return obj;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Allowed values for the <code>type</code> property.
|
|
54
|
+
* @enum {String}
|
|
55
|
+
* @readonly
|
|
56
|
+
*/
|
|
57
|
+
ChatcompletionsTools.TypeEnum = {
|
|
58
|
+
/**
|
|
59
|
+
* value: "agent"
|
|
60
|
+
* @const
|
|
61
|
+
*/
|
|
62
|
+
agent: "agent"
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* The type of tool to call. Only \"agent\" is valid
|
|
66
|
+
* @member {module:model/ChatcompletionsTools.TypeEnum} type
|
|
67
|
+
*/
|
|
68
|
+
ChatcompletionsTools.prototype.type = undefined;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* An array of parameters to use when calling the mAIstro agent\"
|
|
72
|
+
* @member {Array.<module:model/SeekStreamParams>} params
|
|
73
|
+
*/
|
|
74
|
+
ChatcompletionsTools.prototype.params = undefined;
|
|
75
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
* The ExtractBody model module.
|
|
20
|
+
* @module model/ExtractBody
|
|
21
|
+
* @version 1.0.1
|
|
22
|
+
*/
|
|
23
|
+
export default class ExtractBody {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>ExtractBody</code>.
|
|
26
|
+
* @alias module:model/ExtractBody
|
|
27
|
+
* @class
|
|
28
|
+
*/
|
|
29
|
+
constructor() {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a <code>ExtractBody</code> from a plain JavaScript object, optionally creating a new instance.
|
|
34
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
35
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
36
|
+
* @param {module:model/ExtractBody} obj Optional instance to populate.
|
|
37
|
+
* @return {module:model/ExtractBody} The populated <code>ExtractBody</code> instance.
|
|
38
|
+
*/
|
|
39
|
+
static constructFromObject(data, obj) {
|
|
40
|
+
if (data) {
|
|
41
|
+
obj = obj || new ExtractBody();
|
|
42
|
+
if (data.hasOwnProperty('text'))
|
|
43
|
+
obj.text = ApiClient.convertToType(data['text'], 'String');
|
|
44
|
+
if (data.hasOwnProperty('language'))
|
|
45
|
+
obj.language = ApiClient.convertToType(data['language'], 'String');
|
|
46
|
+
if (data.hasOwnProperty('entities'))
|
|
47
|
+
obj.entities = ApiClient.convertToType(data['entities'], 'String');
|
|
48
|
+
if (data.hasOwnProperty('slots'))
|
|
49
|
+
obj.slots = ApiClient.convertToType(data['slots'], Object);
|
|
50
|
+
if (data.hasOwnProperty('confirmSlots'))
|
|
51
|
+
obj.confirmSlots = ApiClient.convertToType(data['confirmSlots'], 'Boolean');
|
|
52
|
+
if (data.hasOwnProperty('confirmEverySlot'))
|
|
53
|
+
obj.confirmEverySlot = ApiClient.convertToType(data['confirmEverySlot'], 'Boolean');
|
|
54
|
+
}
|
|
55
|
+
return obj;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The text to extract entitites from
|
|
61
|
+
* @member {String} text
|
|
62
|
+
*/
|
|
63
|
+
ExtractBody.prototype.text = undefined;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The 2-char language code to be used when generating a promptEntity response. Only set this if you want to override the configured language in NeuralSeek.
|
|
67
|
+
* @member {String} language
|
|
68
|
+
*/
|
|
69
|
+
ExtractBody.prototype.language = undefined;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* An array of objects, stringified. The properties of the object are name, description, and format
|
|
73
|
+
* @member {String} entities
|
|
74
|
+
*/
|
|
75
|
+
ExtractBody.prototype.entities = undefined;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Provide an object of variable names, with a type property set to an entity type to match to in total across multiple turns of a conversation. NeuralSeek will return a promptEntity to display to the user to continue to fil the slots. As slots are filled the value field will be populated. Continue to send this entire filed back as input thru the multiple turns of the conversation, untill Complete is set to true. Complete will be set to true when all slots are filled
|
|
79
|
+
* @member {Object} slots
|
|
80
|
+
*/
|
|
81
|
+
ExtractBody.prototype.slots = undefined;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* When using Slots, once all slots have been filled display a summary and ask for a confirmation before setting the 'complete' flag
|
|
85
|
+
* @member {Boolean} confirmSlots
|
|
86
|
+
*/
|
|
87
|
+
ExtractBody.prototype.confirmSlots = undefined;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* When using Slots, on every turn recite the slot that was just previously filled.
|
|
91
|
+
* @member {Boolean} confirmEverySlot
|
|
92
|
+
*/
|
|
93
|
+
ExtractBody.prototype.confirmEverySlot = undefined;
|
|
94
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
* The IdentifysingleBody model module.
|
|
20
|
+
* @module model/IdentifysingleBody
|
|
21
|
+
* @version 1.0.1
|
|
22
|
+
*/
|
|
23
|
+
export default class IdentifysingleBody {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>IdentifysingleBody</code>.
|
|
26
|
+
* @alias module:model/IdentifysingleBody
|
|
27
|
+
* @class
|
|
28
|
+
*/
|
|
29
|
+
constructor() {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a <code>IdentifysingleBody</code> from a plain JavaScript object, optionally creating a new instance.
|
|
34
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
35
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
36
|
+
* @param {module:model/IdentifysingleBody} obj Optional instance to populate.
|
|
37
|
+
* @return {module:model/IdentifysingleBody} The populated <code>IdentifysingleBody</code> instance.
|
|
38
|
+
*/
|
|
39
|
+
static constructFromObject(data, obj) {
|
|
40
|
+
if (data) {
|
|
41
|
+
obj = obj || new IdentifysingleBody();
|
|
42
|
+
if (data.hasOwnProperty('input'))
|
|
43
|
+
obj.input = ApiClient.convertToType(data['input'], 'String');
|
|
44
|
+
}
|
|
45
|
+
return obj;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The input text to identify the language of
|
|
51
|
+
* @member {String} input
|
|
52
|
+
* @default ''
|
|
53
|
+
*/
|
|
54
|
+
IdentifysingleBody.prototype.input = '';
|
|
55
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
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 SeekResponse from './SeekResponse';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The InlineResponse200 model module.
|
|
21
|
+
* @module model/InlineResponse200
|
|
22
|
+
* @version 1.0.1
|
|
23
|
+
*/
|
|
24
|
+
export default class InlineResponse200 {
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a new <code>InlineResponse200</code>.
|
|
27
|
+
* @alias module:model/InlineResponse200
|
|
28
|
+
* @class
|
|
29
|
+
* @param data {module:model/SeekResponse}
|
|
30
|
+
*/
|
|
31
|
+
constructor(data) {
|
|
32
|
+
this.data = data;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a <code>InlineResponse200</code> from a plain JavaScript object, optionally creating a new instance.
|
|
37
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
38
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
39
|
+
* @param {module:model/InlineResponse200} obj Optional instance to populate.
|
|
40
|
+
* @return {module:model/InlineResponse200} The populated <code>InlineResponse200</code> instance.
|
|
41
|
+
*/
|
|
42
|
+
static constructFromObject(data, obj) {
|
|
43
|
+
if (data) {
|
|
44
|
+
obj = obj || new InlineResponse200();
|
|
45
|
+
if (data.hasOwnProperty('data'))
|
|
46
|
+
obj.data = SeekResponse.constructFromObject(data['data']);
|
|
47
|
+
}
|
|
48
|
+
return obj;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @member {module:model/SeekResponse} data
|
|
54
|
+
*/
|
|
55
|
+
InlineResponse200.prototype.data = undefined;
|
|
56
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
* The InlineResponse2001 model module.
|
|
20
|
+
* @module model/InlineResponse2001
|
|
21
|
+
* @version 1.0.1
|
|
22
|
+
*/
|
|
23
|
+
export default class InlineResponse2001 {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>InlineResponse2001</code>.
|
|
26
|
+
* @alias module:model/InlineResponse2001
|
|
27
|
+
* @class
|
|
28
|
+
*/
|
|
29
|
+
constructor() {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a <code>InlineResponse2001</code> from a plain JavaScript object, optionally creating a new instance.
|
|
34
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
35
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
36
|
+
* @param {module:model/InlineResponse2001} obj Optional instance to populate.
|
|
37
|
+
* @return {module:model/InlineResponse2001} The populated <code>InlineResponse2001</code> instance.
|
|
38
|
+
*/
|
|
39
|
+
static constructFromObject(data, obj) {
|
|
40
|
+
if (data) {
|
|
41
|
+
obj = obj || new InlineResponse2001();
|
|
42
|
+
if (data.hasOwnProperty('score'))
|
|
43
|
+
obj.score = ApiClient.convertToType(data['score'], 'Number');
|
|
44
|
+
if (data.hasOwnProperty('total'))
|
|
45
|
+
obj.total = ApiClient.convertToType(data['total'], 'Number');
|
|
46
|
+
if (data.hasOwnProperty('feedback'))
|
|
47
|
+
obj.feedback = ApiClient.convertToType(data['feedback'], 'String');
|
|
48
|
+
}
|
|
49
|
+
return obj;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The average score for the answer.
|
|
55
|
+
* @member {Number} score
|
|
56
|
+
*/
|
|
57
|
+
InlineResponse2001.prototype.score = undefined;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The total number of user ratings for the answer.
|
|
61
|
+
* @member {Number} total
|
|
62
|
+
*/
|
|
63
|
+
InlineResponse2001.prototype.total = undefined;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* User feedback
|
|
67
|
+
* @member {String} feedback
|
|
68
|
+
*/
|
|
69
|
+
InlineResponse2001.prototype.feedback = undefined;
|
|
70
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
* The InlineResponse20010 model module.
|
|
20
|
+
* @module model/InlineResponse20010
|
|
21
|
+
* @version 1.0.1
|
|
22
|
+
*/
|
|
23
|
+
export default class InlineResponse20010 {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>InlineResponse20010</code>.
|
|
26
|
+
* @alias module:model/InlineResponse20010
|
|
27
|
+
* @class
|
|
28
|
+
*/
|
|
29
|
+
constructor() {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a <code>InlineResponse20010</code> from a plain JavaScript object, optionally creating a new instance.
|
|
34
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
35
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
36
|
+
* @param {module:model/InlineResponse20010} obj Optional instance to populate.
|
|
37
|
+
* @return {module:model/InlineResponse20010} The populated <code>InlineResponse20010</code> instance.
|
|
38
|
+
*/
|
|
39
|
+
static constructFromObject(data, obj) {
|
|
40
|
+
if (data) {
|
|
41
|
+
obj = obj || new InlineResponse20010();
|
|
42
|
+
if (data.hasOwnProperty('pii'))
|
|
43
|
+
obj.pii = ApiClient.convertToType(data['pii'], ['String']);
|
|
44
|
+
}
|
|
45
|
+
return obj;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* An array of found PII
|
|
51
|
+
* @member {Array.<String>} pii
|
|
52
|
+
*/
|
|
53
|
+
InlineResponse20010.prototype.pii = undefined;
|
|
54
|
+
|