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.
Files changed (236) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +206 -0
  3. package/docs/AnalyticsApi.md +59 -0
  4. package/docs/AnalyticsBody.md +6 -0
  5. package/docs/AnswerRatingsBody.md +7 -0
  6. package/docs/CategorizeApi.md +58 -0
  7. package/docs/CategorizeBody.md +6 -0
  8. package/docs/ChatCompletionsBody.md +9 -0
  9. package/docs/ChatcompletionsMessages.md +16 -0
  10. package/docs/ChatcompletionsTools.md +13 -0
  11. package/docs/ExtractBody.md +11 -0
  12. package/docs/ExtractEntitiesApi.md +58 -0
  13. package/docs/GuardrailsApi.md +109 -0
  14. package/docs/IdentifysingleBody.md +6 -0
  15. package/docs/InlineResponse200.md +6 -0
  16. package/docs/InlineResponse2001.md +8 -0
  17. package/docs/InlineResponse20010.md +6 -0
  18. package/docs/InlineResponse20011.md +9 -0
  19. package/docs/InlineResponse20012.md +7 -0
  20. package/docs/InlineResponse20013.md +6 -0
  21. package/docs/InlineResponse2002.md +10 -0
  22. package/docs/InlineResponse2002Render.md +9 -0
  23. package/docs/InlineResponse2003.md +6 -0
  24. package/docs/InlineResponse2003Data.md +10 -0
  25. package/docs/InlineResponse2004.md +10 -0
  26. package/docs/InlineResponse2004Choices.md +8 -0
  27. package/docs/InlineResponse2004Message.md +14 -0
  28. package/docs/InlineResponse2005.md +9 -0
  29. package/docs/InlineResponse2005TopIntents.md +7 -0
  30. package/docs/InlineResponse2006.md +9 -0
  31. package/docs/InlineResponse2006ExtractedEntities.md +6 -0
  32. package/docs/InlineResponse2007.md +12 -0
  33. package/docs/InlineResponse2007Translations.md +6 -0
  34. package/docs/InlineResponse2008.md +7 -0
  35. package/docs/InlineResponse2009.md +7 -0
  36. package/docs/KeysApi.md +99 -0
  37. package/docs/LogExternalAgentBody.md +11 -0
  38. package/docs/LogExternalAgentEntries.md +34 -0
  39. package/docs/LogsApi.md +110 -0
  40. package/docs/LogsBody.md +8 -0
  41. package/docs/MAIstroAgentRatingsApi.md +109 -0
  42. package/docs/MAIstroApi.md +367 -0
  43. package/docs/MaistroBatchBody.md +9 -0
  44. package/docs/MaistroBody.md +9 -0
  45. package/docs/MaistroOptions.md +20 -0
  46. package/docs/MaistroRateBody.md +9 -0
  47. package/docs/MaistroRatingsBody.md +7 -0
  48. package/docs/MaistroStreamBody.md +9 -0
  49. package/docs/MaistroStreamOptions.md +19 -0
  50. package/docs/PiiBody.md +6 -0
  51. package/docs/RateBody.md +8 -0
  52. package/docs/ScoreBody.md +7 -0
  53. package/docs/Seek.md +9 -0
  54. package/docs/SeekAnswerRatingsApi.md +109 -0
  55. package/docs/SeekApi.md +109 -0
  56. package/docs/SeekOptions.md +24 -0
  57. package/docs/SeekResponse.md +32 -0
  58. package/docs/SeekResponsePassages.md +11 -0
  59. package/docs/SeekResponseVariablesExpanded.md +7 -0
  60. package/docs/SeekStreamBody.md +9 -0
  61. package/docs/SeekStreamOptions.md +23 -0
  62. package/docs/SeekStreamOptionsLastTurn.md +7 -0
  63. package/docs/SeekStreamOptionsPersonalize.md +10 -0
  64. package/docs/SeekStreamParams.md +7 -0
  65. package/docs/SeekStreamUserSession.md +7 -0
  66. package/docs/SeekStreamUserSessionMetadata.md +6 -0
  67. package/docs/SeekStreamUserSessionSystem.md +6 -0
  68. package/docs/ServiceTestApi.md +46 -0
  69. package/docs/TestBody.md +6 -0
  70. package/docs/TestBody1.md +6 -0
  71. package/docs/TestQuestionsApi.md +107 -0
  72. package/docs/TrainBody.md +7 -0
  73. package/docs/TrainKBApi.md +58 -0
  74. package/docs/TranslateApi.md +259 -0
  75. package/docs/TranslateBody.md +11 -0
  76. package/docs/TranslateGlossaryBody.md +6 -0
  77. package/docs/TranslateGlossaryBody1.md +6 -0
  78. package/docs/UserDataApi.md +59 -0
  79. package/git_push.sh +52 -0
  80. package/mocha.opts +1 -0
  81. package/package.json +55 -0
  82. package/src/AnalyticsApi.js +82 -0
  83. package/src/ApiClient.js +585 -0
  84. package/src/CategorizeApi.js +87 -0
  85. package/src/ExtractEntitiesApi.js +87 -0
  86. package/src/GuardrailsApi.js +134 -0
  87. package/src/KeysApi.js +122 -0
  88. package/src/LogsApi.js +133 -0
  89. package/src/MAIstroAgentRatingsApi.js +134 -0
  90. package/src/MAIstroApi.js +366 -0
  91. package/src/SeekAnswerRatingsApi.js +134 -0
  92. package/src/SeekApi.js +136 -0
  93. package/src/ServiceTestApi.js +79 -0
  94. package/src/TestQuestionsApi.js +124 -0
  95. package/src/TrainKBApi.js +85 -0
  96. package/src/TranslateApi.js +277 -0
  97. package/src/UserDataApi.js +81 -0
  98. package/src/index.js +587 -0
  99. package/src/model/AnalyticsBody.js +54 -0
  100. package/src/model/AnswerRatingsBody.js +62 -0
  101. package/src/model/CategorizeBody.js +55 -0
  102. package/src/model/ChatCompletionsBody.js +80 -0
  103. package/src/model/ChatcompletionsMessages.js +92 -0
  104. package/src/model/ChatcompletionsTools.js +75 -0
  105. package/src/model/ExtractBody.js +94 -0
  106. package/src/model/IdentifysingleBody.js +55 -0
  107. package/src/model/InlineResponse200.js +56 -0
  108. package/src/model/InlineResponse2001.js +70 -0
  109. package/src/model/InlineResponse20010.js +54 -0
  110. package/src/model/InlineResponse20011.js +81 -0
  111. package/src/model/InlineResponse20012.js +60 -0
  112. package/src/model/InlineResponse20013.js +55 -0
  113. package/src/model/InlineResponse2002.js +88 -0
  114. package/src/model/InlineResponse2002Render.js +80 -0
  115. package/src/model/InlineResponse2003.js +56 -0
  116. package/src/model/InlineResponse2003Data.js +88 -0
  117. package/src/model/InlineResponse2004.js +86 -0
  118. package/src/model/InlineResponse2004Choices.js +70 -0
  119. package/src/model/InlineResponse2004Message.js +80 -0
  120. package/src/model/InlineResponse2005.js +80 -0
  121. package/src/model/InlineResponse2005TopIntents.js +64 -0
  122. package/src/model/InlineResponse2006.js +79 -0
  123. package/src/model/InlineResponse2006ExtractedEntities.js +55 -0
  124. package/src/model/InlineResponse2007.js +103 -0
  125. package/src/model/InlineResponse2007Translations.js +55 -0
  126. package/src/model/InlineResponse2008.js +63 -0
  127. package/src/model/InlineResponse2009.js +63 -0
  128. package/src/model/LogExternalAgentBody.js +104 -0
  129. package/src/model/LogExternalAgentEntries.js +195 -0
  130. package/src/model/LogsBody.js +73 -0
  131. package/src/model/MaistroBatchBody.js +81 -0
  132. package/src/model/MaistroBody.js +81 -0
  133. package/src/model/MaistroOptions.js +176 -0
  134. package/src/model/MaistroRateBody.js +78 -0
  135. package/src/model/MaistroRatingsBody.js +62 -0
  136. package/src/model/MaistroStreamBody.js +81 -0
  137. package/src/model/MaistroStreamOptions.js +167 -0
  138. package/src/model/PiiBody.js +55 -0
  139. package/src/model/RateBody.js +70 -0
  140. package/src/model/ScoreBody.js +63 -0
  141. package/src/model/Seek.js +82 -0
  142. package/src/model/SeekOptions.js +216 -0
  143. package/src/model/SeekResponse.js +281 -0
  144. package/src/model/SeekResponsePassages.js +99 -0
  145. package/src/model/SeekResponseVariablesExpanded.js +64 -0
  146. package/src/model/SeekStreamBody.js +82 -0
  147. package/src/model/SeekStreamOptions.js +207 -0
  148. package/src/model/SeekStreamOptionsLastTurn.js +64 -0
  149. package/src/model/SeekStreamOptionsPersonalize.js +91 -0
  150. package/src/model/SeekStreamParams.js +64 -0
  151. package/src/model/SeekStreamUserSession.js +63 -0
  152. package/src/model/SeekStreamUserSessionMetadata.js +55 -0
  153. package/src/model/SeekStreamUserSessionSystem.js +55 -0
  154. package/src/model/TestBody.js +53 -0
  155. package/src/model/TestBody1.js +55 -0
  156. package/src/model/TrainBody.js +63 -0
  157. package/src/model/TranslateBody.js +99 -0
  158. package/src/model/TranslateGlossaryBody.js +53 -0
  159. package/src/model/TranslateGlossaryBody1.js +54 -0
  160. package/test/api/AnalyticsApi.spec.js +60 -0
  161. package/test/api/CategorizeApi.spec.js +61 -0
  162. package/test/api/ExtractEntitiesApi.spec.js +61 -0
  163. package/test/api/GuardrailsApi.spec.js +85 -0
  164. package/test/api/KeysApi.spec.js +79 -0
  165. package/test/api/LogsApi.spec.js +88 -0
  166. package/test/api/MAIstroAgentRatingsApi.spec.js +79 -0
  167. package/test/api/MAIstroApi.spec.js +180 -0
  168. package/test/api/SeekAnswerRatingsApi.spec.js +79 -0
  169. package/test/api/SeekApi.spec.js +81 -0
  170. package/test/api/ServiceTestApi.spec.js +59 -0
  171. package/test/api/TestQuestionsApi.spec.js +78 -0
  172. package/test/api/TrainKBApi.spec.js +59 -0
  173. package/test/api/TranslateApi.spec.js +143 -0
  174. package/test/api/UserDataApi.spec.js +60 -0
  175. package/test/assert-equals.js +81 -0
  176. package/test/model/AnalyticsBody.spec.js +52 -0
  177. package/test/model/AnswerRatingsBody.spec.js +58 -0
  178. package/test/model/CategorizeBody.spec.js +52 -0
  179. package/test/model/ChatCompletionsBody.spec.js +70 -0
  180. package/test/model/ChatcompletionsMessages.spec.js +58 -0
  181. package/test/model/ChatcompletionsTools.spec.js +58 -0
  182. package/test/model/ExtractBody.spec.js +82 -0
  183. package/test/model/IdentifysingleBody.spec.js +52 -0
  184. package/test/model/InlineResponse200.spec.js +52 -0
  185. package/test/model/InlineResponse2001.spec.js +64 -0
  186. package/test/model/InlineResponse20010.spec.js +52 -0
  187. package/test/model/InlineResponse20011.spec.js +70 -0
  188. package/test/model/InlineResponse20012.spec.js +58 -0
  189. package/test/model/InlineResponse20013.spec.js +52 -0
  190. package/test/model/InlineResponse2002.spec.js +76 -0
  191. package/test/model/InlineResponse2002Render.spec.js +70 -0
  192. package/test/model/InlineResponse2003.spec.js +52 -0
  193. package/test/model/InlineResponse2003Data.spec.js +76 -0
  194. package/test/model/InlineResponse2004.spec.js +76 -0
  195. package/test/model/InlineResponse2004Choices.spec.js +64 -0
  196. package/test/model/InlineResponse2004Message.spec.js +58 -0
  197. package/test/model/InlineResponse2005.spec.js +70 -0
  198. package/test/model/InlineResponse2005TopIntents.spec.js +58 -0
  199. package/test/model/InlineResponse2006.spec.js +70 -0
  200. package/test/model/InlineResponse2006ExtractedEntities.spec.js +52 -0
  201. package/test/model/InlineResponse2007.spec.js +88 -0
  202. package/test/model/InlineResponse2007Translations.spec.js +52 -0
  203. package/test/model/InlineResponse2008.spec.js +58 -0
  204. package/test/model/InlineResponse2009.spec.js +58 -0
  205. package/test/model/LogExternalAgentBody.spec.js +82 -0
  206. package/test/model/LogExternalAgentEntries.spec.js +118 -0
  207. package/test/model/LogsBody.spec.js +64 -0
  208. package/test/model/MaistroBatchBody.spec.js +70 -0
  209. package/test/model/MaistroBody.spec.js +70 -0
  210. package/test/model/MaistroOptions.spec.js +136 -0
  211. package/test/model/MaistroRateBody.spec.js +70 -0
  212. package/test/model/MaistroRatingsBody.spec.js +58 -0
  213. package/test/model/MaistroStreamBody.spec.js +70 -0
  214. package/test/model/MaistroStreamOptions.spec.js +130 -0
  215. package/test/model/PiiBody.spec.js +52 -0
  216. package/test/model/RateBody.spec.js +64 -0
  217. package/test/model/ScoreBody.spec.js +58 -0
  218. package/test/model/Seek.spec.js +70 -0
  219. package/test/model/SeekOptions.spec.js +160 -0
  220. package/test/model/SeekResponse.spec.js +208 -0
  221. package/test/model/SeekResponsePassages.spec.js +82 -0
  222. package/test/model/SeekResponseVariablesExpanded.spec.js +58 -0
  223. package/test/model/SeekStreamBody.spec.js +70 -0
  224. package/test/model/SeekStreamOptions.spec.js +154 -0
  225. package/test/model/SeekStreamOptionsLastTurn.spec.js +58 -0
  226. package/test/model/SeekStreamOptionsPersonalize.spec.js +76 -0
  227. package/test/model/SeekStreamParams.spec.js +58 -0
  228. package/test/model/SeekStreamUserSession.spec.js +58 -0
  229. package/test/model/SeekStreamUserSessionMetadata.spec.js +52 -0
  230. package/test/model/SeekStreamUserSessionSystem.spec.js +52 -0
  231. package/test/model/TestBody.spec.js +52 -0
  232. package/test/model/TestBody1.spec.js +52 -0
  233. package/test/model/TrainBody.spec.js +58 -0
  234. package/test/model/TranslateBody.spec.js +82 -0
  235. package/test/model/TranslateGlossaryBody.spec.js +52 -0
  236. package/test/model/TranslateGlossaryBody1.spec.js +52 -0
@@ -0,0 +1,176 @@
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 SeekStreamOptionsLastTurn from './SeekStreamOptionsLastTurn';
18
+
19
+ /**
20
+ * The MaistroOptions model module.
21
+ * @module model/MaistroOptions
22
+ * @version 1.0.1
23
+ */
24
+ export default class MaistroOptions {
25
+ /**
26
+ * Constructs a new <code>MaistroOptions</code>.
27
+ * Override options
28
+ * @alias module:model/MaistroOptions
29
+ * @class
30
+ */
31
+ constructor() {
32
+ }
33
+
34
+ /**
35
+ * Constructs a <code>MaistroOptions</code> from a plain JavaScript object, optionally creating a new instance.
36
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
37
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
38
+ * @param {module:model/MaistroOptions} obj Optional instance to populate.
39
+ * @return {module:model/MaistroOptions} The populated <code>MaistroOptions</code> instance.
40
+ */
41
+ static constructFromObject(data, obj) {
42
+ if (data) {
43
+ obj = obj || new MaistroOptions();
44
+ if (data.hasOwnProperty('streaming'))
45
+ obj.streaming = ApiClient.convertToType(data['streaming'], 'Boolean');
46
+ if (data.hasOwnProperty('llm'))
47
+ obj.llm = ApiClient.convertToType(data['llm'], 'String');
48
+ if (data.hasOwnProperty('user_id'))
49
+ obj.userId = ApiClient.convertToType(data['user_id'], 'String');
50
+ if (data.hasOwnProperty('timeout'))
51
+ obj.timeout = ApiClient.convertToType(data['timeout'], 'Number');
52
+ if (data.hasOwnProperty('temperatureMod'))
53
+ obj.temperatureMod = ApiClient.convertToType(data['temperatureMod'], 'Number');
54
+ if (data.hasOwnProperty('toppMod'))
55
+ obj.toppMod = ApiClient.convertToType(data['toppMod'], 'Number');
56
+ if (data.hasOwnProperty('freqpenaltyMod'))
57
+ obj.freqpenaltyMod = ApiClient.convertToType(data['freqpenaltyMod'], 'Number');
58
+ if (data.hasOwnProperty('minTokens'))
59
+ obj.minTokens = ApiClient.convertToType(data['minTokens'], 'Number');
60
+ if (data.hasOwnProperty('maxTokens'))
61
+ obj.maxTokens = ApiClient.convertToType(data['maxTokens'], 'Number');
62
+ if (data.hasOwnProperty('lastTurn'))
63
+ obj.lastTurn = ApiClient.convertToType(data['lastTurn'], [SeekStreamOptionsLastTurn]);
64
+ if (data.hasOwnProperty('returnVariables'))
65
+ obj.returnVariables = ApiClient.convertToType(data['returnVariables'], 'Boolean');
66
+ if (data.hasOwnProperty('returnVariablesExpanded'))
67
+ obj.returnVariablesExpanded = ApiClient.convertToType(data['returnVariablesExpanded'], 'Boolean');
68
+ if (data.hasOwnProperty('returnRender'))
69
+ obj.returnRender = ApiClient.convertToType(data['returnRender'], 'Boolean');
70
+ if (data.hasOwnProperty('returnSource'))
71
+ obj.returnSource = ApiClient.convertToType(data['returnSource'], 'Boolean');
72
+ if (data.hasOwnProperty('maxRecursion'))
73
+ obj.maxRecursion = ApiClient.convertToType(data['maxRecursion'], 'Number');
74
+ }
75
+ return obj;
76
+ }
77
+ }
78
+
79
+ /**
80
+ * Return the response via SSE streaming. This is not compatible with most Virtual Agent platforms, and is intentded for direct website use.
81
+ * @member {Boolean} streaming
82
+ * @default false
83
+ */
84
+ MaistroOptions.prototype.streaming = false;
85
+
86
+ /**
87
+ * Override the LLM load balancer and force seek to use a specific LLM. Input the LLM code here. You must have a valid model card set up on the configure tab for the code you input.
88
+ * @member {String} llm
89
+ * @default ''
90
+ */
91
+ MaistroOptions.prototype.llm = '';
92
+
93
+ /**
94
+ * Set the user_id. Useful and required if you have a corporate document filter set
95
+ * @member {String} userId
96
+ * @default ''
97
+ */
98
+ MaistroOptions.prototype.userId = '';
99
+
100
+ /**
101
+ * Timeout in miliseconds. (optional)
102
+ * @member {Number} timeout
103
+ */
104
+ MaistroOptions.prototype.timeout = undefined;
105
+
106
+ /**
107
+ * Shift the model's baseline temperature weighting by a percentage
108
+ * @member {Number} temperatureMod
109
+ */
110
+ MaistroOptions.prototype.temperatureMod = undefined;
111
+
112
+ /**
113
+ * Shift the model's baseline probability weighting by a percentage
114
+ * @member {Number} toppMod
115
+ */
116
+ MaistroOptions.prototype.toppMod = undefined;
117
+
118
+ /**
119
+ * Shift the model's baseline frequency penalty weighting by a percentage
120
+ * @member {Number} freqpenaltyMod
121
+ */
122
+ MaistroOptions.prototype.freqpenaltyMod = undefined;
123
+
124
+ /**
125
+ * Set the minimum tokens you want the model to produce
126
+ * @member {Number} minTokens
127
+ */
128
+ MaistroOptions.prototype.minTokens = undefined;
129
+
130
+ /**
131
+ * Set the maximum tokens you want the model to produce
132
+ * @member {Number} maxTokens
133
+ */
134
+ MaistroOptions.prototype.maxTokens = undefined;
135
+
136
+ /**
137
+ * lastTurn is a flexible object. It is backwards compatible with the original single turn object, as well as compatible with the Watson Assistant session history format.
138
+ * @member {Array.<module:model/SeekStreamOptionsLastTurn>} lastTurn
139
+ */
140
+ MaistroOptions.prototype.lastTurn = undefined;
141
+
142
+ /**
143
+ * Return the final state of all variables in a dense object
144
+ * @member {Boolean} returnVariables
145
+ * @default false
146
+ */
147
+ MaistroOptions.prototype.returnVariables = false;
148
+
149
+ /**
150
+ * Return the final state of all variables in the same format as the input params
151
+ * @member {Boolean} returnVariablesExpanded
152
+ * @default false
153
+ */
154
+ MaistroOptions.prototype.returnVariablesExpanded = false;
155
+
156
+ /**
157
+ * Return the midstate renders
158
+ * @member {Boolean} returnRender
159
+ * @default false
160
+ */
161
+ MaistroOptions.prototype.returnRender = false;
162
+
163
+ /**
164
+ * Return the source parts
165
+ * @member {Boolean} returnSource
166
+ * @default false
167
+ */
168
+ MaistroOptions.prototype.returnSource = false;
169
+
170
+ /**
171
+ * The maximum number of recursive calls to Explore. Use caution that you have not created an endless loop as you increase the maximum, as each Explore is charged.
172
+ * @member {Number} maxRecursion
173
+ * @default 10
174
+ */
175
+ MaistroOptions.prototype.maxRecursion = 10;
176
+
@@ -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
+ import ApiClient from '../ApiClient';
17
+
18
+ /**
19
+ * The MaistroRateBody model module.
20
+ * @module model/MaistroRateBody
21
+ * @version 1.0.1
22
+ */
23
+ export default class MaistroRateBody {
24
+ /**
25
+ * Constructs a new <code>MaistroRateBody</code>.
26
+ * @alias module:model/MaistroRateBody
27
+ * @class
28
+ */
29
+ constructor() {
30
+ }
31
+
32
+ /**
33
+ * Constructs a <code>MaistroRateBody</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/MaistroRateBody} obj Optional instance to populate.
37
+ * @return {module:model/MaistroRateBody} The populated <code>MaistroRateBody</code> instance.
38
+ */
39
+ static constructFromObject(data, obj) {
40
+ if (data) {
41
+ obj = obj || new MaistroRateBody();
42
+ if (data.hasOwnProperty('agent'))
43
+ obj.agent = ApiClient.convertToType(data['agent'], 'String');
44
+ if (data.hasOwnProperty('runId'))
45
+ obj.runId = ApiClient.convertToType(data['runId'], 'Number');
46
+ if (data.hasOwnProperty('score'))
47
+ obj.score = ApiClient.convertToType(data['score'], 'Number');
48
+ if (data.hasOwnProperty('feedback'))
49
+ obj.feedback = ApiClient.convertToType(data['feedback'], 'String');
50
+ }
51
+ return obj;
52
+ }
53
+ }
54
+
55
+ /**
56
+ * The Agent
57
+ * @member {String} agent
58
+ */
59
+ MaistroRateBody.prototype.agent = undefined;
60
+
61
+ /**
62
+ * The runId
63
+ * @member {Number} runId
64
+ */
65
+ MaistroRateBody.prototype.runId = undefined;
66
+
67
+ /**
68
+ * The rating score. An integer, 0-5. 0 is worst, 5 is best. For Thumbs up / Thumbs down send 0 or 5
69
+ * @member {Number} score
70
+ */
71
+ MaistroRateBody.prototype.score = undefined;
72
+
73
+ /**
74
+ * text feedback on the answer
75
+ * @member {String} feedback
76
+ */
77
+ MaistroRateBody.prototype.feedback = undefined;
78
+
@@ -0,0 +1,62 @@
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 MaistroRatingsBody model module.
20
+ * @module model/MaistroRatingsBody
21
+ * @version 1.0.1
22
+ */
23
+ export default class MaistroRatingsBody {
24
+ /**
25
+ * Constructs a new <code>MaistroRatingsBody</code>.
26
+ * @alias module:model/MaistroRatingsBody
27
+ * @class
28
+ */
29
+ constructor() {
30
+ }
31
+
32
+ /**
33
+ * Constructs a <code>MaistroRatingsBody</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/MaistroRatingsBody} obj Optional instance to populate.
37
+ * @return {module:model/MaistroRatingsBody} The populated <code>MaistroRatingsBody</code> instance.
38
+ */
39
+ static constructFromObject(data, obj) {
40
+ if (data) {
41
+ obj = obj || new MaistroRatingsBody();
42
+ if (data.hasOwnProperty('agent'))
43
+ obj.agent = ApiClient.convertToType(data['agent'], 'String');
44
+ if (data.hasOwnProperty('number'))
45
+ obj._number = ApiClient.convertToType(data['number'], 'Number');
46
+ }
47
+ return obj;
48
+ }
49
+ }
50
+
51
+ /**
52
+ * The agent
53
+ * @member {String} agent
54
+ */
55
+ MaistroRatingsBody.prototype.agent = undefined;
56
+
57
+ /**
58
+ * The number of previous user ratings to average. Leave blank to average all ratings.
59
+ * @member {Number} _number
60
+ */
61
+ MaistroRatingsBody.prototype._number = undefined;
62
+
@@ -0,0 +1,81 @@
1
+ /*
2
+ * NeuralSeek
3
+ * NeuralSeek - The business LLM accelerator
4
+ *
5
+ * OpenAPI spec version: 1.0.1
6
+ * Contact: support@NeuralSeek.com
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ *
11
+ * Swagger Codegen version: 3.0.78
12
+ *
13
+ * Do not edit the class manually.
14
+ *
15
+ */
16
+ import ApiClient from '../ApiClient';
17
+ import MaistroStreamOptions from './MaistroStreamOptions';
18
+ import SeekStreamParams from './SeekStreamParams';
19
+
20
+ /**
21
+ * The MaistroStreamBody model module.
22
+ * @module model/MaistroStreamBody
23
+ * @version 1.0.1
24
+ */
25
+ export default class MaistroStreamBody {
26
+ /**
27
+ * Constructs a new <code>MaistroStreamBody</code>.
28
+ * @alias module:model/MaistroStreamBody
29
+ * @class
30
+ */
31
+ constructor() {
32
+ }
33
+
34
+ /**
35
+ * Constructs a <code>MaistroStreamBody</code> from a plain JavaScript object, optionally creating a new instance.
36
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
37
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
38
+ * @param {module:model/MaistroStreamBody} obj Optional instance to populate.
39
+ * @return {module:model/MaistroStreamBody} The populated <code>MaistroStreamBody</code> instance.
40
+ */
41
+ static constructFromObject(data, obj) {
42
+ if (data) {
43
+ obj = obj || new MaistroStreamBody();
44
+ if (data.hasOwnProperty('ntl'))
45
+ obj.ntl = ApiClient.convertToType(data['ntl'], 'String');
46
+ if (data.hasOwnProperty('agent'))
47
+ obj.agent = ApiClient.convertToType(data['agent'], 'String');
48
+ if (data.hasOwnProperty('params'))
49
+ obj.params = ApiClient.convertToType(data['params'], [SeekStreamParams]);
50
+ if (data.hasOwnProperty('options'))
51
+ obj.options = MaistroStreamOptions.constructFromObject(data['options']);
52
+ }
53
+ return obj;
54
+ }
55
+ }
56
+
57
+ /**
58
+ * The NTL script to evaluate. Include either this or agent - not both
59
+ * @member {String} ntl
60
+ * @default ''
61
+ */
62
+ MaistroStreamBody.prototype.ntl = '';
63
+
64
+ /**
65
+ * The agent to use. Include either this or NTL
66
+ * @member {String} agent
67
+ * @default ''
68
+ */
69
+ MaistroStreamBody.prototype.agent = '';
70
+
71
+ /**
72
+ * An array of parameters to use in evaluation of the NTL
73
+ * @member {Array.<module:model/SeekStreamParams>} params
74
+ */
75
+ MaistroStreamBody.prototype.params = undefined;
76
+
77
+ /**
78
+ * @member {module:model/MaistroStreamOptions} options
79
+ */
80
+ MaistroStreamBody.prototype.options = undefined;
81
+
@@ -0,0 +1,167 @@
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 SeekStreamOptionsLastTurn from './SeekStreamOptionsLastTurn';
18
+
19
+ /**
20
+ * The MaistroStreamOptions model module.
21
+ * @module model/MaistroStreamOptions
22
+ * @version 1.0.1
23
+ */
24
+ export default class MaistroStreamOptions {
25
+ /**
26
+ * Constructs a new <code>MaistroStreamOptions</code>.
27
+ * Override options
28
+ * @alias module:model/MaistroStreamOptions
29
+ * @class
30
+ */
31
+ constructor() {
32
+ }
33
+
34
+ /**
35
+ * Constructs a <code>MaistroStreamOptions</code> from a plain JavaScript object, optionally creating a new instance.
36
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
37
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
38
+ * @param {module:model/MaistroStreamOptions} obj Optional instance to populate.
39
+ * @return {module:model/MaistroStreamOptions} The populated <code>MaistroStreamOptions</code> instance.
40
+ */
41
+ static constructFromObject(data, obj) {
42
+ if (data) {
43
+ obj = obj || new MaistroStreamOptions();
44
+ if (data.hasOwnProperty('llm'))
45
+ obj.llm = ApiClient.convertToType(data['llm'], 'String');
46
+ if (data.hasOwnProperty('user_id'))
47
+ obj.userId = ApiClient.convertToType(data['user_id'], 'String');
48
+ if (data.hasOwnProperty('timeout'))
49
+ obj.timeout = ApiClient.convertToType(data['timeout'], 'Number');
50
+ if (data.hasOwnProperty('temperatureMod'))
51
+ obj.temperatureMod = ApiClient.convertToType(data['temperatureMod'], 'Number');
52
+ if (data.hasOwnProperty('toppMod'))
53
+ obj.toppMod = ApiClient.convertToType(data['toppMod'], 'Number');
54
+ if (data.hasOwnProperty('freqpenaltyMod'))
55
+ obj.freqpenaltyMod = ApiClient.convertToType(data['freqpenaltyMod'], 'Number');
56
+ if (data.hasOwnProperty('minTokens'))
57
+ obj.minTokens = ApiClient.convertToType(data['minTokens'], 'Number');
58
+ if (data.hasOwnProperty('maxTokens'))
59
+ obj.maxTokens = ApiClient.convertToType(data['maxTokens'], 'Number');
60
+ if (data.hasOwnProperty('lastTurn'))
61
+ obj.lastTurn = ApiClient.convertToType(data['lastTurn'], [SeekStreamOptionsLastTurn]);
62
+ if (data.hasOwnProperty('returnVariables'))
63
+ obj.returnVariables = ApiClient.convertToType(data['returnVariables'], 'Boolean');
64
+ if (data.hasOwnProperty('returnVariablesExpanded'))
65
+ obj.returnVariablesExpanded = ApiClient.convertToType(data['returnVariablesExpanded'], 'Boolean');
66
+ if (data.hasOwnProperty('returnRender'))
67
+ obj.returnRender = ApiClient.convertToType(data['returnRender'], 'Boolean');
68
+ if (data.hasOwnProperty('returnSource'))
69
+ obj.returnSource = ApiClient.convertToType(data['returnSource'], 'Boolean');
70
+ if (data.hasOwnProperty('maxRecursion'))
71
+ obj.maxRecursion = ApiClient.convertToType(data['maxRecursion'], 'Number');
72
+ }
73
+ return obj;
74
+ }
75
+ }
76
+
77
+ /**
78
+ * Override the LLM load balancer and force seek to use a specific LLM. Input the LLM code here. You must have a valid model card set up on the configure tab for the code you input.
79
+ * @member {String} llm
80
+ * @default ''
81
+ */
82
+ MaistroStreamOptions.prototype.llm = '';
83
+
84
+ /**
85
+ * Set the user_id. Useful and required if you have a corporate document filter set
86
+ * @member {String} userId
87
+ * @default ''
88
+ */
89
+ MaistroStreamOptions.prototype.userId = '';
90
+
91
+ /**
92
+ * Timeout in miliseconds. (optional)
93
+ * @member {Number} timeout
94
+ */
95
+ MaistroStreamOptions.prototype.timeout = undefined;
96
+
97
+ /**
98
+ * Shift the model's baseline temperature weighting by a percentage
99
+ * @member {Number} temperatureMod
100
+ */
101
+ MaistroStreamOptions.prototype.temperatureMod = undefined;
102
+
103
+ /**
104
+ * Shift the model's baseline probability weighting by a percentage
105
+ * @member {Number} toppMod
106
+ */
107
+ MaistroStreamOptions.prototype.toppMod = undefined;
108
+
109
+ /**
110
+ * Shift the model's baseline frequency penalty weighting by a percentage
111
+ * @member {Number} freqpenaltyMod
112
+ */
113
+ MaistroStreamOptions.prototype.freqpenaltyMod = undefined;
114
+
115
+ /**
116
+ * Set the minimum tokens you want the model to produce
117
+ * @member {Number} minTokens
118
+ */
119
+ MaistroStreamOptions.prototype.minTokens = undefined;
120
+
121
+ /**
122
+ * Set the maximum tokens you want the model to produce
123
+ * @member {Number} maxTokens
124
+ */
125
+ MaistroStreamOptions.prototype.maxTokens = undefined;
126
+
127
+ /**
128
+ * lastTurn is a flexible object. It is backwards compatible with the original single turn object, as well as compatible with the Watson Assistant session history format.
129
+ * @member {Array.<module:model/SeekStreamOptionsLastTurn>} lastTurn
130
+ */
131
+ MaistroStreamOptions.prototype.lastTurn = undefined;
132
+
133
+ /**
134
+ * Return the final state of all variables in a dense object
135
+ * @member {Boolean} returnVariables
136
+ * @default false
137
+ */
138
+ MaistroStreamOptions.prototype.returnVariables = false;
139
+
140
+ /**
141
+ * Return the final state of all variables in the same format as the input params
142
+ * @member {Boolean} returnVariablesExpanded
143
+ * @default false
144
+ */
145
+ MaistroStreamOptions.prototype.returnVariablesExpanded = false;
146
+
147
+ /**
148
+ * Return the midstate renders
149
+ * @member {Boolean} returnRender
150
+ * @default false
151
+ */
152
+ MaistroStreamOptions.prototype.returnRender = false;
153
+
154
+ /**
155
+ * Return the source parts
156
+ * @member {Boolean} returnSource
157
+ * @default false
158
+ */
159
+ MaistroStreamOptions.prototype.returnSource = false;
160
+
161
+ /**
162
+ * The maximum number of recursive calls to Explore. Use caution that you have not created an endless loop as you increase the maximum, as each Explore is charged.
163
+ * @member {Number} maxRecursion
164
+ * @default 10
165
+ */
166
+ MaistroStreamOptions.prototype.maxRecursion = 10;
167
+
@@ -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 PiiBody model module.
20
+ * @module model/PiiBody
21
+ * @version 1.0.1
22
+ */
23
+ export default class PiiBody {
24
+ /**
25
+ * Constructs a new <code>PiiBody</code>.
26
+ * @alias module:model/PiiBody
27
+ * @class
28
+ */
29
+ constructor() {
30
+ }
31
+
32
+ /**
33
+ * Constructs a <code>PiiBody</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/PiiBody} obj Optional instance to populate.
37
+ * @return {module:model/PiiBody} The populated <code>PiiBody</code> instance.
38
+ */
39
+ static constructFromObject(data, obj) {
40
+ if (data) {
41
+ obj = obj || new PiiBody();
42
+ if (data.hasOwnProperty('text'))
43
+ obj.text = ApiClient.convertToType(data['text'], 'String');
44
+ }
45
+ return obj;
46
+ }
47
+ }
48
+
49
+ /**
50
+ * The user utterance to check for PII
51
+ * @member {String} text
52
+ * @default ''
53
+ */
54
+ PiiBody.prototype.text = '';
55
+
@@ -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 RateBody model module.
20
+ * @module model/RateBody
21
+ * @version 1.0.1
22
+ */
23
+ export default class RateBody {
24
+ /**
25
+ * Constructs a new <code>RateBody</code>.
26
+ * @alias module:model/RateBody
27
+ * @class
28
+ */
29
+ constructor() {
30
+ }
31
+
32
+ /**
33
+ * Constructs a <code>RateBody</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/RateBody} obj Optional instance to populate.
37
+ * @return {module:model/RateBody} The populated <code>RateBody</code> instance.
38
+ */
39
+ static constructFromObject(data, obj) {
40
+ if (data) {
41
+ obj = obj || new RateBody();
42
+ if (data.hasOwnProperty('answerId'))
43
+ obj.answerId = ApiClient.convertToType(data['answerId'], 'Number');
44
+ if (data.hasOwnProperty('score'))
45
+ obj.score = ApiClient.convertToType(data['score'], 'Number');
46
+ if (data.hasOwnProperty('feedback'))
47
+ obj.feedback = ApiClient.convertToType(data['feedback'], 'String');
48
+ }
49
+ return obj;
50
+ }
51
+ }
52
+
53
+ /**
54
+ * The answer id
55
+ * @member {Number} answerId
56
+ */
57
+ RateBody.prototype.answerId = undefined;
58
+
59
+ /**
60
+ * The rating score. An integer, 0-5. 0 is worst, 5 is best. For Thumbs up / Thumbs down send 0 or 5
61
+ * @member {Number} score
62
+ */
63
+ RateBody.prototype.score = undefined;
64
+
65
+ /**
66
+ * text feedback on the answer
67
+ * @member {String} feedback
68
+ */
69
+ RateBody.prototype.feedback = undefined;
70
+