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,109 @@
1
+ # NeuralSeek.MAIstroAgentRatingsApi
2
+
3
+ All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**maistroRate**](MAIstroAgentRatingsApi.md#maistroRate) | **POST** /maistroRate | Rate an Agent
8
+ [**maistroRatings**](MAIstroAgentRatingsApi.md#maistroRatings) | **POST** /maistroRatings | Get the average user ratings for an agent
9
+
10
+ <a name="maistroRate"></a>
11
+ # **maistroRate**
12
+ > maistroRate(body)
13
+
14
+ Rate an Agent
15
+
16
+ Allow users to give feedback on an Agent run
17
+
18
+ ### Example
19
+ ```javascript
20
+ import {NeuralSeek} from 'neuralSeek';
21
+ let defaultClient = NeuralSeek.ApiClient.instance;
22
+
23
+ // Configure API key authorization: apiKey
24
+ let apiKey = defaultClient.authentications['apiKey'];
25
+ apiKey.apiKey = 'YOUR API KEY';
26
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
27
+ //apiKey.apiKeyPrefix = 'Token';
28
+
29
+ let apiInstance = new NeuralSeek.MAIstroAgentRatingsApi();
30
+ let body = new NeuralSeek.MaistroRateBody(); // MaistroRateBody | The request object.
31
+
32
+ apiInstance.maistroRate(body, (error, data, response) => {
33
+ if (error) {
34
+ console.error(error);
35
+ } else {
36
+ console.log('API called successfully.');
37
+ }
38
+ });
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **body** | [**MaistroRateBody**](MaistroRateBody.md)| The request object. |
46
+
47
+ ### Return type
48
+
49
+ null (empty response body)
50
+
51
+ ### Authorization
52
+
53
+ [apiKey](../README.md#apiKey)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: application/json
58
+ - **Accept**: Not defined
59
+
60
+ <a name="maistroRatings"></a>
61
+ # **maistroRatings**
62
+ > InlineResponse2001 maistroRatings(body)
63
+
64
+ Get the average user ratings for an agent
65
+
66
+ Get the average user ratings for an agent
67
+
68
+ ### Example
69
+ ```javascript
70
+ import {NeuralSeek} from 'neuralSeek';
71
+ let defaultClient = NeuralSeek.ApiClient.instance;
72
+
73
+ // Configure API key authorization: apiKey
74
+ let apiKey = defaultClient.authentications['apiKey'];
75
+ apiKey.apiKey = 'YOUR API KEY';
76
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
77
+ //apiKey.apiKeyPrefix = 'Token';
78
+
79
+ let apiInstance = new NeuralSeek.MAIstroAgentRatingsApi();
80
+ let body = new NeuralSeek.MaistroRatingsBody(); // MaistroRatingsBody | The request object.
81
+
82
+ apiInstance.maistroRatings(body, (error, data, response) => {
83
+ if (error) {
84
+ console.error(error);
85
+ } else {
86
+ console.log('API called successfully. Returned data: ' + data);
87
+ }
88
+ });
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ Name | Type | Description | Notes
94
+ ------------- | ------------- | ------------- | -------------
95
+ **body** | [**MaistroRatingsBody**](MaistroRatingsBody.md)| The request object. |
96
+
97
+ ### Return type
98
+
99
+ [**InlineResponse2001**](InlineResponse2001.md)
100
+
101
+ ### Authorization
102
+
103
+ [apiKey](../README.md#apiKey)
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: application/json
108
+ - **Accept**: application/json
109
+
@@ -0,0 +1,367 @@
1
+ # NeuralSeek.MAIstroApi
2
+
3
+ All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**chat**](MAIstroApi.md#chat) | **POST** /chat/completions | Chat Completions - compatible mAIStro endpoint
8
+ [**maistro**](MAIstroApi.md#maistro) | **POST** /maistro | Run mAistro NTL or agent
9
+ [**maistroAgentGet**](MAIstroApi.md#maistroAgentGet) | **GET** /maistro/{agent} | Run a mAIstro agent via GET
10
+ [**maistroBatch**](MAIstroApi.md#maistroBatch) | **POST** /maistro_batch | Call mAIstro NTL or an agent via batch
11
+ [**maistroBatchDelete**](MAIstroApi.md#maistroBatchDelete) | **DELETE** /maistro_batch | Cancel current mAIstro batch run
12
+ [**maistroBatchGet**](MAIstroApi.md#maistroBatchGet) | **GET** /maistro_batch | Get mAIstro batch results
13
+ [**maistroStream**](MAIstroApi.md#maistroStream) | **POST** /maistro_stream | Stream mAIstro NTL or an agent
14
+
15
+ <a name="chat"></a>
16
+ # **chat**
17
+ > InlineResponse2004 chat(opts)
18
+
19
+ Chat Completions - compatible mAIStro endpoint
20
+
21
+ Call a mAIstro agent using the openAI chat completions schema.
22
+
23
+ ### Example
24
+ ```javascript
25
+ import {NeuralSeek} from 'neuralSeek';
26
+ let defaultClient = NeuralSeek.ApiClient.instance;
27
+
28
+ // Configure API key authorization: apiKey
29
+ let apiKey = defaultClient.authentications['apiKey'];
30
+ apiKey.apiKey = 'YOUR API KEY';
31
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
32
+ //apiKey.apiKeyPrefix = 'Token';
33
+
34
+ let apiInstance = new NeuralSeek.MAIstroApi();
35
+ let opts = {
36
+ 'body': new NeuralSeek.ChatCompletionsBody(), // ChatCompletionsBody |
37
+ 'runid': "runid_example" // String | Optional header to specify the run ID
38
+ };
39
+ apiInstance.chat(opts, (error, data, response) => {
40
+ if (error) {
41
+ console.error(error);
42
+ } else {
43
+ console.log('API called successfully. Returned data: ' + data);
44
+ }
45
+ });
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+ Name | Type | Description | Notes
51
+ ------------- | ------------- | ------------- | -------------
52
+ **body** | [**ChatCompletionsBody**](ChatCompletionsBody.md)| | [optional]
53
+ **runid** | **String**| Optional header to specify the run ID | [optional]
54
+
55
+ ### Return type
56
+
57
+ [**InlineResponse2004**](InlineResponse2004.md)
58
+
59
+ ### Authorization
60
+
61
+ [apiKey](../README.md#apiKey)
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: application/json
66
+ - **Accept**: application/json, text/event-stream
67
+
68
+ <a name="maistro"></a>
69
+ # **maistro**
70
+ > InlineResponse2002 maistro(body, opts)
71
+
72
+ Run mAistro NTL or agent
73
+
74
+ Freeform prompting using NeuralSeek Template Language or a saved agent
75
+
76
+ ### Example
77
+ ```javascript
78
+ import {NeuralSeek} from 'neuralSeek';
79
+ let defaultClient = NeuralSeek.ApiClient.instance;
80
+
81
+ // Configure API key authorization: apiKey
82
+ let apiKey = defaultClient.authentications['apiKey'];
83
+ apiKey.apiKey = 'YOUR API KEY';
84
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
85
+ //apiKey.apiKeyPrefix = 'Token';
86
+
87
+ let apiInstance = new NeuralSeek.MAIstroApi();
88
+ let body = new NeuralSeek.MaistroBody(); // MaistroBody | The request object.
89
+ let opts = {
90
+ 'overrideschema': "", // String | Find variables based on post body. Return all variables as the base presponse body, overriding the normal NS schema. All POST options will be ignored. Set this to a string value of 'true' to activate
91
+ 'overrideagent': "", // String | If using overrideSchema you must pass your agent name here. All other POST options will be ignored.
92
+ 'debug': "" // String | Include NS debug information in a field named 'neuralseek'. Set this to a string value of 'true' to activate
93
+ };
94
+ apiInstance.maistro(body, opts, (error, data, response) => {
95
+ if (error) {
96
+ console.error(error);
97
+ } else {
98
+ console.log('API called successfully. Returned data: ' + data);
99
+ }
100
+ });
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+ Name | Type | Description | Notes
106
+ ------------- | ------------- | ------------- | -------------
107
+ **body** | [**MaistroBody**](MaistroBody.md)| The request object. |
108
+ **overrideschema** | **String**| Find variables based on post body. Return all variables as the base presponse body, overriding the normal NS schema. All POST options will be ignored. Set this to a string value of &#x27;true&#x27; to activate | [optional]
109
+ **overrideagent** | **String**| If using overrideSchema you must pass your agent name here. All other POST options will be ignored. | [optional]
110
+ **debug** | **String**| Include NS debug information in a field named &#x27;neuralseek&#x27;. Set this to a string value of &#x27;true&#x27; to activate | [optional]
111
+
112
+ ### Return type
113
+
114
+ [**InlineResponse2002**](InlineResponse2002.md)
115
+
116
+ ### Authorization
117
+
118
+ [apiKey](../README.md#apiKey)
119
+
120
+ ### HTTP request headers
121
+
122
+ - **Content-Type**: application/json
123
+ - **Accept**: application/json
124
+
125
+ <a name="maistroAgentGet"></a>
126
+ # **maistroAgentGet**
127
+ > InlineResponse2002 maistroAgentGet(agent, opts)
128
+
129
+ Run a mAIstro agent via GET
130
+
131
+ Run a mAIstro agent via GET
132
+
133
+ ### Example
134
+ ```javascript
135
+ import {NeuralSeek} from 'neuralSeek';
136
+ let defaultClient = NeuralSeek.ApiClient.instance;
137
+
138
+ // Configure API key authorization: apiKey
139
+ let apiKey = defaultClient.authentications['apiKey'];
140
+ apiKey.apiKey = 'YOUR API KEY';
141
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
142
+ //apiKey.apiKeyPrefix = 'Token';
143
+
144
+ let apiInstance = new NeuralSeek.MAIstroApi();
145
+ let agent = "agent_example"; // String | The saved mAIstro agent to run
146
+ let opts = {
147
+ 'params': "params_example" // String | Pass your mAIstro params as query parameters in simple name=value format
148
+ };
149
+ apiInstance.maistroAgentGet(agent, opts, (error, data, response) => {
150
+ if (error) {
151
+ console.error(error);
152
+ } else {
153
+ console.log('API called successfully. Returned data: ' + data);
154
+ }
155
+ });
156
+ ```
157
+
158
+ ### Parameters
159
+
160
+ Name | Type | Description | Notes
161
+ ------------- | ------------- | ------------- | -------------
162
+ **agent** | **String**| The saved mAIstro agent to run |
163
+ **params** | **String**| Pass your mAIstro params as query parameters in simple name&#x3D;value format | [optional]
164
+
165
+ ### Return type
166
+
167
+ [**InlineResponse2002**](InlineResponse2002.md)
168
+
169
+ ### Authorization
170
+
171
+ [apiKey](../README.md#apiKey)
172
+
173
+ ### HTTP request headers
174
+
175
+ - **Content-Type**: Not defined
176
+ - **Accept**: application/json
177
+
178
+ <a name="maistroBatch"></a>
179
+ # **maistroBatch**
180
+ > maistroBatch(body)
181
+
182
+ Call mAIstro NTL or an agent via batch
183
+
184
+ Freeform prompting using NeuralSeek Template Language or a saved agent run in batch mode
185
+
186
+ ### Example
187
+ ```javascript
188
+ import {NeuralSeek} from 'neuralSeek';
189
+ let defaultClient = NeuralSeek.ApiClient.instance;
190
+
191
+ // Configure API key authorization: apiKey
192
+ let apiKey = defaultClient.authentications['apiKey'];
193
+ apiKey.apiKey = 'YOUR API KEY';
194
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
195
+ //apiKey.apiKeyPrefix = 'Token';
196
+
197
+ let apiInstance = new NeuralSeek.MAIstroApi();
198
+ let body = new NeuralSeek.MaistroBatchBody(); // MaistroBatchBody | The request object.
199
+
200
+ apiInstance.maistroBatch(body, (error, data, response) => {
201
+ if (error) {
202
+ console.error(error);
203
+ } else {
204
+ console.log('API called successfully.');
205
+ }
206
+ });
207
+ ```
208
+
209
+ ### Parameters
210
+
211
+ Name | Type | Description | Notes
212
+ ------------- | ------------- | ------------- | -------------
213
+ **body** | [**MaistroBatchBody**](MaistroBatchBody.md)| The request object. |
214
+
215
+ ### Return type
216
+
217
+ null (empty response body)
218
+
219
+ ### Authorization
220
+
221
+ [apiKey](../README.md#apiKey)
222
+
223
+ ### HTTP request headers
224
+
225
+ - **Content-Type**: application/json
226
+ - **Accept**: Not defined
227
+
228
+ <a name="maistroBatchDelete"></a>
229
+ # **maistroBatchDelete**
230
+ > maistroBatchDelete()
231
+
232
+ Cancel current mAIstro batch run
233
+
234
+ Cancel current mAIstro batch run
235
+
236
+ ### Example
237
+ ```javascript
238
+ import {NeuralSeek} from 'neuralSeek';
239
+ let defaultClient = NeuralSeek.ApiClient.instance;
240
+
241
+ // Configure API key authorization: apiKey
242
+ let apiKey = defaultClient.authentications['apiKey'];
243
+ apiKey.apiKey = 'YOUR API KEY';
244
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
245
+ //apiKey.apiKeyPrefix = 'Token';
246
+
247
+ let apiInstance = new NeuralSeek.MAIstroApi();
248
+ apiInstance.maistroBatchDelete((error, data, response) => {
249
+ if (error) {
250
+ console.error(error);
251
+ } else {
252
+ console.log('API called successfully.');
253
+ }
254
+ });
255
+ ```
256
+
257
+ ### Parameters
258
+ This endpoint does not need any parameter.
259
+
260
+ ### Return type
261
+
262
+ null (empty response body)
263
+
264
+ ### Authorization
265
+
266
+ [apiKey](../README.md#apiKey)
267
+
268
+ ### HTTP request headers
269
+
270
+ - **Content-Type**: Not defined
271
+ - **Accept**: Not defined
272
+
273
+ <a name="maistroBatchGet"></a>
274
+ # **maistroBatchGet**
275
+ > InlineResponse2002 maistroBatchGet()
276
+
277
+ Get mAIstro batch results
278
+
279
+ Retrieve results from a mAIstro batch run
280
+
281
+ ### Example
282
+ ```javascript
283
+ import {NeuralSeek} from 'neuralSeek';
284
+ let defaultClient = NeuralSeek.ApiClient.instance;
285
+
286
+ // Configure API key authorization: apiKey
287
+ let apiKey = defaultClient.authentications['apiKey'];
288
+ apiKey.apiKey = 'YOUR API KEY';
289
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
290
+ //apiKey.apiKeyPrefix = 'Token';
291
+
292
+ let apiInstance = new NeuralSeek.MAIstroApi();
293
+ apiInstance.maistroBatchGet((error, data, response) => {
294
+ if (error) {
295
+ console.error(error);
296
+ } else {
297
+ console.log('API called successfully. Returned data: ' + data);
298
+ }
299
+ });
300
+ ```
301
+
302
+ ### Parameters
303
+ This endpoint does not need any parameter.
304
+
305
+ ### Return type
306
+
307
+ [**InlineResponse2002**](InlineResponse2002.md)
308
+
309
+ ### Authorization
310
+
311
+ [apiKey](../README.md#apiKey)
312
+
313
+ ### HTTP request headers
314
+
315
+ - **Content-Type**: Not defined
316
+ - **Accept**: application/json
317
+
318
+ <a name="maistroStream"></a>
319
+ # **maistroStream**
320
+ > InlineResponse2003 maistroStream(body)
321
+
322
+ Stream mAIstro NTL or an agent
323
+
324
+ Freeform prompting using NeuralSeek Template Language or a saved agent
325
+
326
+ ### Example
327
+ ```javascript
328
+ import {NeuralSeek} from 'neuralSeek';
329
+ let defaultClient = NeuralSeek.ApiClient.instance;
330
+
331
+ // Configure API key authorization: apiKey
332
+ let apiKey = defaultClient.authentications['apiKey'];
333
+ apiKey.apiKey = 'YOUR API KEY';
334
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
335
+ //apiKey.apiKeyPrefix = 'Token';
336
+
337
+ let apiInstance = new NeuralSeek.MAIstroApi();
338
+ let body = new NeuralSeek.MaistroStreamBody(); // MaistroStreamBody | The request object.
339
+
340
+ apiInstance.maistroStream(body, (error, data, response) => {
341
+ if (error) {
342
+ console.error(error);
343
+ } else {
344
+ console.log('API called successfully. Returned data: ' + data);
345
+ }
346
+ });
347
+ ```
348
+
349
+ ### Parameters
350
+
351
+ Name | Type | Description | Notes
352
+ ------------- | ------------- | ------------- | -------------
353
+ **body** | [**MaistroStreamBody**](MaistroStreamBody.md)| The request object. |
354
+
355
+ ### Return type
356
+
357
+ [**InlineResponse2003**](InlineResponse2003.md)
358
+
359
+ ### Authorization
360
+
361
+ [apiKey](../README.md#apiKey)
362
+
363
+ ### HTTP request headers
364
+
365
+ - **Content-Type**: application/json
366
+ - **Accept**: text/event-stream
367
+
@@ -0,0 +1,9 @@
1
+ # NeuralSeek.MaistroBatchBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **ntl** | **String** | The NTL script to evaluate. Include either this or agent - not both | [optional] [default to &#x27;&#x27;]
7
+ **agent** | **String** | The agent to use. Include either this or NTL | [optional] [default to &#x27;&#x27;]
8
+ **params** | [**[SeekStreamParams]**](SeekStreamParams.md) | An array of parameters to use in evaluation of the NTL | [optional]
9
+ **options** | [**MaistroStreamOptions**](MaistroStreamOptions.md) | | [optional]
@@ -0,0 +1,9 @@
1
+ # NeuralSeek.MaistroBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **ntl** | **String** | The NTL script to evaluate. Include either this or agent - not both | [optional] [default to &#x27;&#x27;]
7
+ **agent** | **String** | The agent to use. Include either this or NTL | [optional] [default to &#x27;&#x27;]
8
+ **params** | [**[SeekStreamParams]**](SeekStreamParams.md) | An array of parameters to use in evaluation of the NTL | [optional]
9
+ **options** | [**MaistroOptions**](MaistroOptions.md) | | [optional]
@@ -0,0 +1,20 @@
1
+ # NeuralSeek.MaistroOptions
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **streaming** | **Boolean** | Return the response via SSE streaming. This is not compatible with most Virtual Agent platforms, and is intentded for direct website use. | [optional] [default to false]
7
+ **llm** | **String** | 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. | [optional] [default to &#x27;&#x27;]
8
+ **userId** | **String** | Set the user_id. Useful and required if you have a corporate document filter set | [optional] [default to &#x27;&#x27;]
9
+ **timeout** | **Number** | Timeout in miliseconds. (optional) | [optional]
10
+ **temperatureMod** | **Number** | Shift the model&#x27;s baseline temperature weighting by a percentage | [optional]
11
+ **toppMod** | **Number** | Shift the model&#x27;s baseline probability weighting by a percentage | [optional]
12
+ **freqpenaltyMod** | **Number** | Shift the model&#x27;s baseline frequency penalty weighting by a percentage | [optional]
13
+ **minTokens** | **Number** | Set the minimum tokens you want the model to produce | [optional]
14
+ **maxTokens** | **Number** | Set the maximum tokens you want the model to produce | [optional]
15
+ **lastTurn** | [**[SeekStreamOptionsLastTurn]**](SeekStreamOptionsLastTurn.md) | 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. | [optional]
16
+ **returnVariables** | **Boolean** | Return the final state of all variables in a dense object | [optional] [default to false]
17
+ **returnVariablesExpanded** | **Boolean** | Return the final state of all variables in the same format as the input params | [optional] [default to false]
18
+ **returnRender** | **Boolean** | Return the midstate renders | [optional] [default to false]
19
+ **returnSource** | **Boolean** | Return the source parts | [optional] [default to false]
20
+ **maxRecursion** | **Number** | 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. | [optional] [default to 10]
@@ -0,0 +1,9 @@
1
+ # NeuralSeek.MaistroRateBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **agent** | **String** | The Agent | [optional]
7
+ **runId** | **Number** | The runId | [optional]
8
+ **score** | **Number** | The rating score. An integer, 0-5. 0 is worst, 5 is best. For Thumbs up / Thumbs down send 0 or 5 | [optional]
9
+ **feedback** | **String** | text feedback on the answer | [optional]
@@ -0,0 +1,7 @@
1
+ # NeuralSeek.MaistroRatingsBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **agent** | **String** | The agent | [optional]
7
+ **_number** | **Number** | The number of previous user ratings to average. Leave blank to average all ratings. | [optional]
@@ -0,0 +1,9 @@
1
+ # NeuralSeek.MaistroStreamBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **ntl** | **String** | The NTL script to evaluate. Include either this or agent - not both | [optional] [default to &#x27;&#x27;]
7
+ **agent** | **String** | The agent to use. Include either this or NTL | [optional] [default to &#x27;&#x27;]
8
+ **params** | [**[SeekStreamParams]**](SeekStreamParams.md) | An array of parameters to use in evaluation of the NTL | [optional]
9
+ **options** | [**MaistroStreamOptions**](MaistroStreamOptions.md) | | [optional]
@@ -0,0 +1,19 @@
1
+ # NeuralSeek.MaistroStreamOptions
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **llm** | **String** | 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. | [optional] [default to &#x27;&#x27;]
7
+ **userId** | **String** | Set the user_id. Useful and required if you have a corporate document filter set | [optional] [default to &#x27;&#x27;]
8
+ **timeout** | **Number** | Timeout in miliseconds. (optional) | [optional]
9
+ **temperatureMod** | **Number** | Shift the model&#x27;s baseline temperature weighting by a percentage | [optional]
10
+ **toppMod** | **Number** | Shift the model&#x27;s baseline probability weighting by a percentage | [optional]
11
+ **freqpenaltyMod** | **Number** | Shift the model&#x27;s baseline frequency penalty weighting by a percentage | [optional]
12
+ **minTokens** | **Number** | Set the minimum tokens you want the model to produce | [optional]
13
+ **maxTokens** | **Number** | Set the maximum tokens you want the model to produce | [optional]
14
+ **lastTurn** | [**[SeekStreamOptionsLastTurn]**](SeekStreamOptionsLastTurn.md) | 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. | [optional]
15
+ **returnVariables** | **Boolean** | Return the final state of all variables in a dense object | [optional] [default to false]
16
+ **returnVariablesExpanded** | **Boolean** | Return the final state of all variables in the same format as the input params | [optional] [default to false]
17
+ **returnRender** | **Boolean** | Return the midstate renders | [optional] [default to false]
18
+ **returnSource** | **Boolean** | Return the source parts | [optional] [default to false]
19
+ **maxRecursion** | **Number** | 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. | [optional] [default to 10]
@@ -0,0 +1,6 @@
1
+ # NeuralSeek.PiiBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **text** | **String** | The user utterance to check for PII | [optional] [default to &#x27;&#x27;]
@@ -0,0 +1,8 @@
1
+ # NeuralSeek.RateBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **answerId** | **Number** | The answer id | [optional]
7
+ **score** | **Number** | The rating score. An integer, 0-5. 0 is worst, 5 is best. For Thumbs up / Thumbs down send 0 or 5 | [optional]
8
+ **feedback** | **String** | text feedback on the answer | [optional]
@@ -0,0 +1,7 @@
1
+ # NeuralSeek.ScoreBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **text** | **String** | The text to score | [optional] [default to &#x27;&#x27;]
7
+ **passages** | **[String]** | The rating score. An integer, 0-5. 0 is worst, 5 is best. For Thumbs up / Thumbs down send 0 or 5 | [optional]
package/docs/Seek.md ADDED
@@ -0,0 +1,9 @@
1
+ # NeuralSeek.Seek
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **question** | **String** | The user&#x27;s question for NeuralSeek | [default to &#x27;&#x27;]
7
+ **userSession** | [**SeekStreamUserSession**](SeekStreamUserSession.md) | | [optional]
8
+ **params** | [**[SeekStreamParams]**](SeekStreamParams.md) | An array of parameters to use in evaluation of the seek when calling mAIstro during a seek. | [optional]
9
+ **options** | [**SeekOptions**](SeekOptions.md) | | [optional]