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,109 @@
|
|
|
1
|
+
# NeuralSeek.GuardrailsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**pii**](GuardrailsApi.md#pii) | **POST** /pii | Find PII in a user utterance
|
|
8
|
+
[**score**](GuardrailsApi.md#score) | **POST** /score | Run the Semantic Scoring model on text against an array of passages
|
|
9
|
+
|
|
10
|
+
<a name="pii"></a>
|
|
11
|
+
# **pii**
|
|
12
|
+
> [InlineResponse20010] pii(body)
|
|
13
|
+
|
|
14
|
+
Find PII in a user utterance
|
|
15
|
+
|
|
16
|
+
Find PII in a user utterance
|
|
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.GuardrailsApi();
|
|
30
|
+
let body = new NeuralSeek.PiiBody(); // PiiBody | The request object.
|
|
31
|
+
|
|
32
|
+
apiInstance.pii(body, (error, data, response) => {
|
|
33
|
+
if (error) {
|
|
34
|
+
console.error(error);
|
|
35
|
+
} else {
|
|
36
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Parameters
|
|
42
|
+
|
|
43
|
+
Name | Type | Description | Notes
|
|
44
|
+
------------- | ------------- | ------------- | -------------
|
|
45
|
+
**body** | [**PiiBody**](PiiBody.md)| The request object. |
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
[**[InlineResponse20010]**](InlineResponse20010.md)
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
[apiKey](../README.md#apiKey)
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: application/json
|
|
58
|
+
- **Accept**: application/json
|
|
59
|
+
|
|
60
|
+
<a name="score"></a>
|
|
61
|
+
# **score**
|
|
62
|
+
> score(body)
|
|
63
|
+
|
|
64
|
+
Run the Semantic Scoring model on text against an array of passages
|
|
65
|
+
|
|
66
|
+
Run the Semantic Scoring model on text against an array of passages
|
|
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.GuardrailsApi();
|
|
80
|
+
let body = new NeuralSeek.ScoreBody(); // ScoreBody | The request object. Must include the question and a context.
|
|
81
|
+
|
|
82
|
+
apiInstance.score(body, (error, data, response) => {
|
|
83
|
+
if (error) {
|
|
84
|
+
console.error(error);
|
|
85
|
+
} else {
|
|
86
|
+
console.log('API called successfully.');
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
Name | Type | Description | Notes
|
|
94
|
+
------------- | ------------- | ------------- | -------------
|
|
95
|
+
**body** | [**ScoreBody**](ScoreBody.md)| The request object. Must include the question and a context. |
|
|
96
|
+
|
|
97
|
+
### Return type
|
|
98
|
+
|
|
99
|
+
null (empty response body)
|
|
100
|
+
|
|
101
|
+
### Authorization
|
|
102
|
+
|
|
103
|
+
[apiKey](../README.md#apiKey)
|
|
104
|
+
|
|
105
|
+
### HTTP request headers
|
|
106
|
+
|
|
107
|
+
- **Content-Type**: application/json
|
|
108
|
+
- **Accept**: Not defined
|
|
109
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2001
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**score** | **Number** | The average score for the answer. | [optional]
|
|
7
|
+
**total** | **Number** | The total number of user ratings for the answer. | [optional]
|
|
8
|
+
**feedback** | **String** | User feedback | [optional]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse20011
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**_date** | **String** | The timestamp of the entry | [optional] [default to '']
|
|
7
|
+
**question** | **String** | The user question | [optional] [default to '']
|
|
8
|
+
**answer** | **String** | The answer returned | [optional] [default to '']
|
|
9
|
+
**id** | **Number** | The answer id | [optional]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2002
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**answer** | **String** | The generated response | [optional] [default to '']
|
|
7
|
+
**sourceParts** | **[String]** | | [optional]
|
|
8
|
+
**render** | [**[InlineResponse2002Render]**](InlineResponse2002Render.md) | The steps used to render the result. | [optional]
|
|
9
|
+
**variables** | **Object** | The returned variable. | [optional]
|
|
10
|
+
**variablesExpanded** | [**[SeekResponseVariablesExpanded]**](SeekResponseVariablesExpanded.md) | The returned variable, in the format of the input params | [optional]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2002Render
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**node** | **String** | The node type | [optional] [default to '']
|
|
7
|
+
**vars** | **Object** | The variable values | [optional]
|
|
8
|
+
**out** | **String** | The output | [optional] [default to '']
|
|
9
|
+
**chained** | **Boolean** | True if the step is chained | [optional]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2003Data
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**answer** | **String** | The generated response | [optional] [default to '']
|
|
7
|
+
**sourceParts** | **[String]** | | [optional]
|
|
8
|
+
**render** | [**[InlineResponse2002Render]**](InlineResponse2002Render.md) | The steps used to render the result. | [optional]
|
|
9
|
+
**variables** | **Object** | The returned variable. | [optional]
|
|
10
|
+
**variablesExpanded** | [**[SeekResponseVariablesExpanded]**](SeekResponseVariablesExpanded.md) | The returned variable, in the format of the input params | [optional]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2004
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **String** | Unique identifier for the completion | [optional]
|
|
7
|
+
**_object** | **String** | The type of object returned, should be 'chat.completion' | [optional]
|
|
8
|
+
**created** | **Number** | Timestamp of when the completion was created | [optional]
|
|
9
|
+
**model** | **String** | The model used for generating the completion | [optional]
|
|
10
|
+
**choices** | [**[InlineResponse2004Choices]**](InlineResponse2004Choices.md) | | [optional]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2004Choices
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**index** | **Number** | The index of the choice | [optional]
|
|
7
|
+
**message** | [**InlineResponse2004Message**](InlineResponse2004Message.md) | | [optional]
|
|
8
|
+
**finishReason** | **String** | The reason the message generation finished | [optional]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2004Message
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**role** | **String** | The role of the message sender | [optional]
|
|
7
|
+
**content** | **String** | The content of the message | [optional]
|
|
8
|
+
|
|
9
|
+
<a name="RoleEnum"></a>
|
|
10
|
+
## Enum: RoleEnum
|
|
11
|
+
|
|
12
|
+
* `user` (value: `"user"`)
|
|
13
|
+
* `assistant` (value: `"assistant"`)
|
|
14
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2005
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**intent** | **String** | The matched Intent | [optional] [default to '']
|
|
7
|
+
**category** | **String** | The matched Category | [optional] [default to '']
|
|
8
|
+
**categoryId** | **Number** | The Category id | [optional]
|
|
9
|
+
**topIntents** | [**InlineResponse2005TopIntents**](InlineResponse2005TopIntents.md) | | [optional]
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2005TopIntents
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**score** | **Number** | The score of the intent | [optional]
|
|
7
|
+
**intent** | **String** | The intent name | [optional] [default to '']
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2006
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**extractedEntities** | [**[InlineResponse2006ExtractedEntities]**](InlineResponse2006ExtractedEntities.md) | | [optional]
|
|
7
|
+
**complete** | **Boolean** | If slots are passed, complete will be set to true when all slots are filled | [optional] [default to false]
|
|
8
|
+
**promptEntity** | **String** | A message to display to the user asking them to provide input for the next group of unfilled slots. | [optional]
|
|
9
|
+
**slots** | **Object** | If the slots parameter is filled on the input, NeuralSeek will return it and begin filling the value fields. 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 | [optional]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2007
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**wordCount** | **Number** | The word count. | [optional]
|
|
7
|
+
**characterCount** | **Number** | The word count. | [optional]
|
|
8
|
+
**detectedLanguage** | **String** | The 2-digit language code for the detected language. | [optional] [default to '']
|
|
9
|
+
**detectedLanguageConfidence** | **Number** | The detected language confidence. | [optional]
|
|
10
|
+
**translationGlossary** | **Boolean** | Returns true if a glossary is loaded and matched any input. | [optional]
|
|
11
|
+
**translationGlossaryExact** | **Boolean** | Returns true if a glossary is loaded and an entry exactly matched the input. | [optional]
|
|
12
|
+
**translations** | [**[InlineResponse2007Translations]**](InlineResponse2007Translations.md) | | [optional]
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2008
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**language** | **String** | The 2-character language code of the identified language. | [optional] [default to '']
|
|
7
|
+
**confidence** | **Number** | The confidence of the language identification. | [optional]
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# NeuralSeek.InlineResponse2009
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**language** | **String** | The 2-character language code of the identified language. | [optional] [default to '']
|
|
7
|
+
**confidence** | **Number** | The confidence of the language identification | [optional]
|
package/docs/KeysApi.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# NeuralSeek.KeysApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**keycheck**](KeysApi.md#keycheck) | **POST** /keycheck | Validate an api key
|
|
8
|
+
[**otp**](KeysApi.md#otp) | **POST** /otp | Create a One Time Password
|
|
9
|
+
|
|
10
|
+
<a name="keycheck"></a>
|
|
11
|
+
# **keycheck**
|
|
12
|
+
> keycheck()
|
|
13
|
+
|
|
14
|
+
Validate an api key
|
|
15
|
+
|
|
16
|
+
Validate an api key
|
|
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.KeysApi();
|
|
30
|
+
apiInstance.keycheck((error, data, response) => {
|
|
31
|
+
if (error) {
|
|
32
|
+
console.error(error);
|
|
33
|
+
} else {
|
|
34
|
+
console.log('API called successfully.');
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
This endpoint does not need any parameter.
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
null (empty response body)
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
[apiKey](../README.md#apiKey)
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: Not defined
|
|
53
|
+
- **Accept**: Not defined
|
|
54
|
+
|
|
55
|
+
<a name="otp"></a>
|
|
56
|
+
# **otp**
|
|
57
|
+
> InlineResponse20013 otp()
|
|
58
|
+
|
|
59
|
+
Create a One Time Password
|
|
60
|
+
|
|
61
|
+
Create a One Time Password for use instead of an api key in unsecure environments, such as the browser. The password will expire after one use, and is valid for 30 minutes. This password can only be used for seek, mAIstro, extract, categorize, score, and logs operations.
|
|
62
|
+
|
|
63
|
+
### Example
|
|
64
|
+
```javascript
|
|
65
|
+
import {NeuralSeek} from 'neuralSeek';
|
|
66
|
+
let defaultClient = NeuralSeek.ApiClient.instance;
|
|
67
|
+
|
|
68
|
+
// Configure API key authorization: apiKey
|
|
69
|
+
let apiKey = defaultClient.authentications['apiKey'];
|
|
70
|
+
apiKey.apiKey = 'YOUR API KEY';
|
|
71
|
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
|
72
|
+
//apiKey.apiKeyPrefix = 'Token';
|
|
73
|
+
|
|
74
|
+
let apiInstance = new NeuralSeek.KeysApi();
|
|
75
|
+
apiInstance.otp((error, data, response) => {
|
|
76
|
+
if (error) {
|
|
77
|
+
console.error(error);
|
|
78
|
+
} else {
|
|
79
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Parameters
|
|
85
|
+
This endpoint does not need any parameter.
|
|
86
|
+
|
|
87
|
+
### Return type
|
|
88
|
+
|
|
89
|
+
[**InlineResponse20013**](InlineResponse20013.md)
|
|
90
|
+
|
|
91
|
+
### Authorization
|
|
92
|
+
|
|
93
|
+
[apiKey](../README.md#apiKey)
|
|
94
|
+
|
|
95
|
+
### HTTP request headers
|
|
96
|
+
|
|
97
|
+
- **Content-Type**: Not defined
|
|
98
|
+
- **Accept**: application/json
|
|
99
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# NeuralSeek.LogExternalAgentBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**runId** | **Number** | Unique numeric identifier for the execution run |
|
|
7
|
+
**templateName** | **String** | Name of the Agent being executed |
|
|
8
|
+
**user** | **String** | User identifier who initiated the execution |
|
|
9
|
+
**time** | **Number** | The total time of the Agent run in ms | [optional]
|
|
10
|
+
**resultsLink** | **String** | Link to detailed execution results |
|
|
11
|
+
**entries** | [**[LogExternalAgentEntries]**](LogExternalAgentEntries.md) | |
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# NeuralSeek.LogExternalAgentEntries
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**type** | **String** | | [optional]
|
|
7
|
+
**llmtime** | **Number** | The LLM time in ms | [optional]
|
|
8
|
+
**inputtokencount** | **Number** | Number of input tokens | [optional]
|
|
9
|
+
**generatedtokencount** | **Number** | Number of generated tokens | [optional]
|
|
10
|
+
**llm** | **String** | LLM model identifier | [optional]
|
|
11
|
+
**llmcode** | **String** | LLM specific code | [optional]
|
|
12
|
+
**kbtime** | **Number** | Knowledge base processing time in ms | [optional]
|
|
13
|
+
**kb** | **String** | Knowledge base identifier | [optional]
|
|
14
|
+
**kbScore** | **Number** | Knowledge base relevance score | [optional]
|
|
15
|
+
**kbCoverage** | **Number** | Knowledge base coverage percentage | [optional]
|
|
16
|
+
**elementTime** | **Number** | Time taken for element processing in ms | [optional]
|
|
17
|
+
**element** | **String** | Type of element being timed | [optional]
|
|
18
|
+
|
|
19
|
+
<a name="TypeEnum"></a>
|
|
20
|
+
## Enum: TypeEnum
|
|
21
|
+
|
|
22
|
+
* `lLMTime` (value: `"LLMTime"`)
|
|
23
|
+
* `lLMCacheTime` (value: `"LLMCacheTime"`)
|
|
24
|
+
* `kBTime` (value: `"KBTime"`)
|
|
25
|
+
* `elementTime` (value: `"ElementTime"`)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
<a name="ElementEnum"></a>
|
|
29
|
+
## Enum: ElementEnum
|
|
30
|
+
|
|
31
|
+
* `model` (value: `"model"`)
|
|
32
|
+
* `rest` (value: `"rest"`)
|
|
33
|
+
* `database` (value: `"database"`)
|
|
34
|
+
|
package/docs/LogsApi.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# NeuralSeek.LogsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**logExternalAgent**](LogsApi.md#logExternalAgent) | **POST** /logExternalAgent | Log external agent execution details
|
|
8
|
+
[**logs**](LogsApi.md#logs) | **POST** /logs | Instance Logs
|
|
9
|
+
|
|
10
|
+
<a name="logExternalAgent"></a>
|
|
11
|
+
# **logExternalAgent**
|
|
12
|
+
> InlineResponse20012 logExternalAgent(body)
|
|
13
|
+
|
|
14
|
+
Log external agent execution details
|
|
15
|
+
|
|
16
|
+
Records various timing and performance metrics for external agent execution
|
|
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.LogsApi();
|
|
30
|
+
let body = new NeuralSeek.LogExternalAgentBody(); // LogExternalAgentBody |
|
|
31
|
+
|
|
32
|
+
apiInstance.logExternalAgent(body, (error, data, response) => {
|
|
33
|
+
if (error) {
|
|
34
|
+
console.error(error);
|
|
35
|
+
} else {
|
|
36
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Parameters
|
|
42
|
+
|
|
43
|
+
Name | Type | Description | Notes
|
|
44
|
+
------------- | ------------- | ------------- | -------------
|
|
45
|
+
**body** | [**LogExternalAgentBody**](LogExternalAgentBody.md)| |
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
[**InlineResponse20012**](InlineResponse20012.md)
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
[apiKey](../README.md#apiKey)
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: application/json
|
|
58
|
+
- **Accept**: application/json
|
|
59
|
+
|
|
60
|
+
<a name="logs"></a>
|
|
61
|
+
# **logs**
|
|
62
|
+
> [InlineResponse20011] logs(opts)
|
|
63
|
+
|
|
64
|
+
Instance Logs
|
|
65
|
+
|
|
66
|
+
Retrieve logs for your instance
|
|
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.LogsApi();
|
|
80
|
+
let opts = {
|
|
81
|
+
'body': new NeuralSeek.LogsBody() // LogsBody | The request object.
|
|
82
|
+
};
|
|
83
|
+
apiInstance.logs(opts, (error, data, response) => {
|
|
84
|
+
if (error) {
|
|
85
|
+
console.error(error);
|
|
86
|
+
} else {
|
|
87
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Parameters
|
|
93
|
+
|
|
94
|
+
Name | Type | Description | Notes
|
|
95
|
+
------------- | ------------- | ------------- | -------------
|
|
96
|
+
**body** | [**LogsBody**](LogsBody.md)| The request object. | [optional]
|
|
97
|
+
|
|
98
|
+
### Return type
|
|
99
|
+
|
|
100
|
+
[**[InlineResponse20011]**](InlineResponse20011.md)
|
|
101
|
+
|
|
102
|
+
### Authorization
|
|
103
|
+
|
|
104
|
+
[apiKey](../README.md#apiKey)
|
|
105
|
+
|
|
106
|
+
### HTTP request headers
|
|
107
|
+
|
|
108
|
+
- **Content-Type**: application/json
|
|
109
|
+
- **Accept**: application/json
|
|
110
|
+
|
package/docs/LogsBody.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# NeuralSeek.LogsBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**limit** | **Number** | The number of rows to return, max of 100 | [optional] [default to 100]
|
|
7
|
+
**skip** | **Number** | The number of result sets to skip for paging | [optional] [default to 0]
|
|
8
|
+
**search** | **String** | An optional search string | [optional] [default to '']
|