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
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# neuralSeek
|
|
2
|
+
|
|
3
|
+
NeuralSeek - JavaScript client for neuralSeek
|
|
4
|
+
NeuralSeek - The business LLM accelerator
|
|
5
|
+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
6
|
+
|
|
7
|
+
- API version: 1.0.1
|
|
8
|
+
- Package version: 1.0.1
|
|
9
|
+
- Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen
|
|
10
|
+
For more information, please visit [https://neuralseek.com](https://neuralseek.com)
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
### For [Node.js](https://nodejs.org/)
|
|
15
|
+
|
|
16
|
+
#### npm
|
|
17
|
+
|
|
18
|
+
To publish the library as a [npm](https://www.npmjs.com/),
|
|
19
|
+
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).
|
|
20
|
+
|
|
21
|
+
Then install it via:
|
|
22
|
+
|
|
23
|
+
```shell
|
|
24
|
+
npm install neuralSeek --save
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
#### git
|
|
28
|
+
#
|
|
29
|
+
If the library is hosted at a git repository, e.g.
|
|
30
|
+
https://github.com/GIT_USER_ID/GIT_REPO_ID
|
|
31
|
+
then install it via:
|
|
32
|
+
|
|
33
|
+
```shell
|
|
34
|
+
npm install GIT_USER_ID/GIT_REPO_ID --save
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### For browser
|
|
38
|
+
|
|
39
|
+
The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
|
|
40
|
+
the above steps with Node.js and installing browserify with `npm install -g browserify`,
|
|
41
|
+
perform the following (assuming *main.js* is your entry file):
|
|
42
|
+
|
|
43
|
+
```shell
|
|
44
|
+
browserify main.js > bundle.js
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Then include *bundle.js* in the HTML pages.
|
|
48
|
+
|
|
49
|
+
### Webpack Configuration
|
|
50
|
+
|
|
51
|
+
Using Webpack you may encounter the following error: "Module not found: Error:
|
|
52
|
+
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
|
|
53
|
+
the following section to your webpack config:
|
|
54
|
+
|
|
55
|
+
```javascript
|
|
56
|
+
module: {
|
|
57
|
+
rules: [
|
|
58
|
+
{
|
|
59
|
+
parser: {
|
|
60
|
+
amd: false
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Getting Started
|
|
68
|
+
|
|
69
|
+
Please follow the [installation](#installation) instruction and execute the following JS code:
|
|
70
|
+
|
|
71
|
+
```javascript
|
|
72
|
+
var NeuralSeek = require('neuralSeek');
|
|
73
|
+
var defaultClient = NeuralSeek.ApiClient.instance;
|
|
74
|
+
|
|
75
|
+
// Configure API key authorization: apiKey
|
|
76
|
+
var apiKey = defaultClient.authentications['apiKey'];
|
|
77
|
+
apiKey.apiKey = "YOUR API KEY"
|
|
78
|
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
|
79
|
+
//apiKey.apiKeyPrefix['apikey'] = "Token"
|
|
80
|
+
|
|
81
|
+
var api = new NeuralSeek.AnalyticsApi()
|
|
82
|
+
var opts = {
|
|
83
|
+
'body': new NeuralSeek.AnalyticsBody() // {AnalyticsBody} The request object. You may optionally limit the result set using \"count\"
|
|
84
|
+
};
|
|
85
|
+
var callback = function(error, data, response) {
|
|
86
|
+
if (error) {
|
|
87
|
+
console.error(error);
|
|
88
|
+
} else {
|
|
89
|
+
console.log('API called successfully.');
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
api.analytics(opts, callback);
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Documentation for API Endpoints
|
|
96
|
+
|
|
97
|
+
All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
|
|
98
|
+
|
|
99
|
+
Class | Method | HTTP request | Description
|
|
100
|
+
------------ | ------------- | ------------- | -------------
|
|
101
|
+
*NeuralSeek.AnalyticsApi* | [**analytics**](docs/AnalyticsApi.md#analytics) | **POST** /analytics | Instance Analytics
|
|
102
|
+
*NeuralSeek.CategorizeApi* | [**categorize**](docs/CategorizeApi.md#categorize) | **POST** /categorize | Categorize text into an Intent & Category
|
|
103
|
+
*NeuralSeek.ExtractEntitiesApi* | [**extractEntities**](docs/ExtractEntitiesApi.md#extractEntities) | **POST** /extract | Extract entitites from text
|
|
104
|
+
*NeuralSeek.GuardrailsApi* | [**pii**](docs/GuardrailsApi.md#pii) | **POST** /pii | Find PII in a user utterance
|
|
105
|
+
*NeuralSeek.GuardrailsApi* | [**score**](docs/GuardrailsApi.md#score) | **POST** /score | Run the Semantic Scoring model on text against an array of passages
|
|
106
|
+
*NeuralSeek.KeysApi* | [**keycheck**](docs/KeysApi.md#keycheck) | **POST** /keycheck | Validate an api key
|
|
107
|
+
*NeuralSeek.KeysApi* | [**otp**](docs/KeysApi.md#otp) | **POST** /otp | Create a One Time Password
|
|
108
|
+
*NeuralSeek.LogsApi* | [**logExternalAgent**](docs/LogsApi.md#logExternalAgent) | **POST** /logExternalAgent | Log external agent execution details
|
|
109
|
+
*NeuralSeek.LogsApi* | [**logs**](docs/LogsApi.md#logs) | **POST** /logs | Instance Logs
|
|
110
|
+
*NeuralSeek.MAIstroApi* | [**chat**](docs/MAIstroApi.md#chat) | **POST** /chat/completions | Chat Completions - compatible mAIStro endpoint
|
|
111
|
+
*NeuralSeek.MAIstroApi* | [**maistro**](docs/MAIstroApi.md#maistro) | **POST** /maistro | Run mAistro NTL or agent
|
|
112
|
+
*NeuralSeek.MAIstroApi* | [**maistroAgentGet**](docs/MAIstroApi.md#maistroAgentGet) | **GET** /maistro/{agent} | Run a mAIstro agent via GET
|
|
113
|
+
*NeuralSeek.MAIstroApi* | [**maistroBatch**](docs/MAIstroApi.md#maistroBatch) | **POST** /maistro_batch | Call mAIstro NTL or an agent via batch
|
|
114
|
+
*NeuralSeek.MAIstroApi* | [**maistroBatchDelete**](docs/MAIstroApi.md#maistroBatchDelete) | **DELETE** /maistro_batch | Cancel current mAIstro batch run
|
|
115
|
+
*NeuralSeek.MAIstroApi* | [**maistroBatchGet**](docs/MAIstroApi.md#maistroBatchGet) | **GET** /maistro_batch | Get mAIstro batch results
|
|
116
|
+
*NeuralSeek.MAIstroApi* | [**maistroStream**](docs/MAIstroApi.md#maistroStream) | **POST** /maistro_stream | Stream mAIstro NTL or an agent
|
|
117
|
+
*NeuralSeek.MAIstroAgentRatingsApi* | [**maistroRate**](docs/MAIstroAgentRatingsApi.md#maistroRate) | **POST** /maistroRate | Rate an Agent
|
|
118
|
+
*NeuralSeek.MAIstroAgentRatingsApi* | [**maistroRatings**](docs/MAIstroAgentRatingsApi.md#maistroRatings) | **POST** /maistroRatings | Get the average user ratings for an agent
|
|
119
|
+
*NeuralSeek.SeekApi* | [**seek**](docs/SeekApi.md#seek) | **POST** /seek | Seek an answer from NeuralSeek
|
|
120
|
+
*NeuralSeek.SeekApi* | [**seekStream**](docs/SeekApi.md#seekStream) | **POST** /seek_stream | Stream a Seek an answer from NeuralSeek
|
|
121
|
+
*NeuralSeek.SeekAnswerRatingsApi* | [**answerRatings**](docs/SeekAnswerRatingsApi.md#answerRatings) | **POST** /answerRatings | Get the average user ratings for an answer
|
|
122
|
+
*NeuralSeek.SeekAnswerRatingsApi* | [**rate**](docs/SeekAnswerRatingsApi.md#rate) | **POST** /rate | Rate an answer
|
|
123
|
+
*NeuralSeek.ServiceTestApi* | [**servicetest**](docs/ServiceTestApi.md#servicetest) | **GET** /test | Service check
|
|
124
|
+
*NeuralSeek.TestQuestionsApi* | [**getTestResults**](docs/TestQuestionsApi.md#getTestResults) | **GET** /getTestResults | Get Test Results
|
|
125
|
+
*NeuralSeek.TestQuestionsApi* | [**test**](docs/TestQuestionsApi.md#test) | **POST** /test | Test questions via batch upload
|
|
126
|
+
*NeuralSeek.TrainKBApi* | [**train**](docs/TrainKBApi.md#train) | **POST** /train | Submit KnowledgeBase Training
|
|
127
|
+
*NeuralSeek.TranslateApi* | [**deleteTranslateGlossary**](docs/TranslateApi.md#deleteTranslateGlossary) | **DELETE** /translateGlossary | Delete the custom translations
|
|
128
|
+
*NeuralSeek.TranslateApi* | [**identifyLanguage**](docs/TranslateApi.md#identifyLanguage) | **POST** /identify | Identify the source language
|
|
129
|
+
*NeuralSeek.TranslateApi* | [**identifyLanguageJSON**](docs/TranslateApi.md#identifyLanguageJSON) | **POST** /identify-single | Identify the source language (JSON)
|
|
130
|
+
*NeuralSeek.TranslateApi* | [**translate**](docs/TranslateApi.md#translate) | **POST** /translate | Translate text into a desired language
|
|
131
|
+
*NeuralSeek.TranslateApi* | [**translateGlossary**](docs/TranslateApi.md#translateGlossary) | **POST** /translateGlossary | Add custom translations
|
|
132
|
+
*NeuralSeek.UserDataApi* | [**deleteUserData**](docs/UserDataApi.md#deleteUserData) | **DELETE** /user_data | Delete all user data
|
|
133
|
+
|
|
134
|
+
## Documentation for Models
|
|
135
|
+
|
|
136
|
+
- [NeuralSeek.AnalyticsBody](docs/AnalyticsBody.md)
|
|
137
|
+
- [NeuralSeek.AnswerRatingsBody](docs/AnswerRatingsBody.md)
|
|
138
|
+
- [NeuralSeek.CategorizeBody](docs/CategorizeBody.md)
|
|
139
|
+
- [NeuralSeek.ChatCompletionsBody](docs/ChatCompletionsBody.md)
|
|
140
|
+
- [NeuralSeek.ChatcompletionsMessages](docs/ChatcompletionsMessages.md)
|
|
141
|
+
- [NeuralSeek.ChatcompletionsTools](docs/ChatcompletionsTools.md)
|
|
142
|
+
- [NeuralSeek.ExtractBody](docs/ExtractBody.md)
|
|
143
|
+
- [NeuralSeek.IdentifysingleBody](docs/IdentifysingleBody.md)
|
|
144
|
+
- [NeuralSeek.InlineResponse200](docs/InlineResponse200.md)
|
|
145
|
+
- [NeuralSeek.InlineResponse2001](docs/InlineResponse2001.md)
|
|
146
|
+
- [NeuralSeek.InlineResponse20010](docs/InlineResponse20010.md)
|
|
147
|
+
- [NeuralSeek.InlineResponse20011](docs/InlineResponse20011.md)
|
|
148
|
+
- [NeuralSeek.InlineResponse20012](docs/InlineResponse20012.md)
|
|
149
|
+
- [NeuralSeek.InlineResponse20013](docs/InlineResponse20013.md)
|
|
150
|
+
- [NeuralSeek.InlineResponse2002](docs/InlineResponse2002.md)
|
|
151
|
+
- [NeuralSeek.InlineResponse2002Render](docs/InlineResponse2002Render.md)
|
|
152
|
+
- [NeuralSeek.InlineResponse2003](docs/InlineResponse2003.md)
|
|
153
|
+
- [NeuralSeek.InlineResponse2003Data](docs/InlineResponse2003Data.md)
|
|
154
|
+
- [NeuralSeek.InlineResponse2004](docs/InlineResponse2004.md)
|
|
155
|
+
- [NeuralSeek.InlineResponse2004Choices](docs/InlineResponse2004Choices.md)
|
|
156
|
+
- [NeuralSeek.InlineResponse2004Message](docs/InlineResponse2004Message.md)
|
|
157
|
+
- [NeuralSeek.InlineResponse2005](docs/InlineResponse2005.md)
|
|
158
|
+
- [NeuralSeek.InlineResponse2005TopIntents](docs/InlineResponse2005TopIntents.md)
|
|
159
|
+
- [NeuralSeek.InlineResponse2006](docs/InlineResponse2006.md)
|
|
160
|
+
- [NeuralSeek.InlineResponse2006ExtractedEntities](docs/InlineResponse2006ExtractedEntities.md)
|
|
161
|
+
- [NeuralSeek.InlineResponse2007](docs/InlineResponse2007.md)
|
|
162
|
+
- [NeuralSeek.InlineResponse2007Translations](docs/InlineResponse2007Translations.md)
|
|
163
|
+
- [NeuralSeek.InlineResponse2008](docs/InlineResponse2008.md)
|
|
164
|
+
- [NeuralSeek.InlineResponse2009](docs/InlineResponse2009.md)
|
|
165
|
+
- [NeuralSeek.LogExternalAgentBody](docs/LogExternalAgentBody.md)
|
|
166
|
+
- [NeuralSeek.LogExternalAgentEntries](docs/LogExternalAgentEntries.md)
|
|
167
|
+
- [NeuralSeek.LogsBody](docs/LogsBody.md)
|
|
168
|
+
- [NeuralSeek.MaistroBatchBody](docs/MaistroBatchBody.md)
|
|
169
|
+
- [NeuralSeek.MaistroBody](docs/MaistroBody.md)
|
|
170
|
+
- [NeuralSeek.MaistroOptions](docs/MaistroOptions.md)
|
|
171
|
+
- [NeuralSeek.MaistroRateBody](docs/MaistroRateBody.md)
|
|
172
|
+
- [NeuralSeek.MaistroRatingsBody](docs/MaistroRatingsBody.md)
|
|
173
|
+
- [NeuralSeek.MaistroStreamBody](docs/MaistroStreamBody.md)
|
|
174
|
+
- [NeuralSeek.MaistroStreamOptions](docs/MaistroStreamOptions.md)
|
|
175
|
+
- [NeuralSeek.PiiBody](docs/PiiBody.md)
|
|
176
|
+
- [NeuralSeek.RateBody](docs/RateBody.md)
|
|
177
|
+
- [NeuralSeek.ScoreBody](docs/ScoreBody.md)
|
|
178
|
+
- [NeuralSeek.Seek](docs/Seek.md)
|
|
179
|
+
- [NeuralSeek.SeekOptions](docs/SeekOptions.md)
|
|
180
|
+
- [NeuralSeek.SeekResponse](docs/SeekResponse.md)
|
|
181
|
+
- [NeuralSeek.SeekResponsePassages](docs/SeekResponsePassages.md)
|
|
182
|
+
- [NeuralSeek.SeekResponseVariablesExpanded](docs/SeekResponseVariablesExpanded.md)
|
|
183
|
+
- [NeuralSeek.SeekStreamBody](docs/SeekStreamBody.md)
|
|
184
|
+
- [NeuralSeek.SeekStreamOptions](docs/SeekStreamOptions.md)
|
|
185
|
+
- [NeuralSeek.SeekStreamOptionsLastTurn](docs/SeekStreamOptionsLastTurn.md)
|
|
186
|
+
- [NeuralSeek.SeekStreamOptionsPersonalize](docs/SeekStreamOptionsPersonalize.md)
|
|
187
|
+
- [NeuralSeek.SeekStreamParams](docs/SeekStreamParams.md)
|
|
188
|
+
- [NeuralSeek.SeekStreamUserSession](docs/SeekStreamUserSession.md)
|
|
189
|
+
- [NeuralSeek.SeekStreamUserSessionMetadata](docs/SeekStreamUserSessionMetadata.md)
|
|
190
|
+
- [NeuralSeek.SeekStreamUserSessionSystem](docs/SeekStreamUserSessionSystem.md)
|
|
191
|
+
- [NeuralSeek.TestBody](docs/TestBody.md)
|
|
192
|
+
- [NeuralSeek.TestBody1](docs/TestBody1.md)
|
|
193
|
+
- [NeuralSeek.TrainBody](docs/TrainBody.md)
|
|
194
|
+
- [NeuralSeek.TranslateBody](docs/TranslateBody.md)
|
|
195
|
+
- [NeuralSeek.TranslateGlossaryBody](docs/TranslateGlossaryBody.md)
|
|
196
|
+
- [NeuralSeek.TranslateGlossaryBody1](docs/TranslateGlossaryBody1.md)
|
|
197
|
+
|
|
198
|
+
## Documentation for Authorization
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### apiKey
|
|
202
|
+
|
|
203
|
+
- **Type**: API key
|
|
204
|
+
- **API key parameter name**: apikey
|
|
205
|
+
- **Location**: HTTP header
|
|
206
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# NeuralSeek.AnalyticsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**analytics**](AnalyticsApi.md#analytics) | **POST** /analytics | Instance Analytics
|
|
8
|
+
|
|
9
|
+
<a name="analytics"></a>
|
|
10
|
+
# **analytics**
|
|
11
|
+
> analytics(opts)
|
|
12
|
+
|
|
13
|
+
Instance Analytics
|
|
14
|
+
|
|
15
|
+
Retrieve an analytics dataset for your instance
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
```javascript
|
|
19
|
+
import {NeuralSeek} from 'neuralSeek';
|
|
20
|
+
let defaultClient = NeuralSeek.ApiClient.instance;
|
|
21
|
+
|
|
22
|
+
// Configure API key authorization: apiKey
|
|
23
|
+
let apiKey = defaultClient.authentications['apiKey'];
|
|
24
|
+
apiKey.apiKey = 'YOUR API KEY';
|
|
25
|
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
|
26
|
+
//apiKey.apiKeyPrefix = 'Token';
|
|
27
|
+
|
|
28
|
+
let apiInstance = new NeuralSeek.AnalyticsApi();
|
|
29
|
+
let opts = {
|
|
30
|
+
'body': new NeuralSeek.AnalyticsBody() // AnalyticsBody | The request object. You may optionally limit the result set using \"count\"
|
|
31
|
+
};
|
|
32
|
+
apiInstance.analytics(opts, (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** | [**AnalyticsBody**](AnalyticsBody.md)| The request object. You may optionally limit the result set using \"count\" | [optional]
|
|
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
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# NeuralSeek.AnswerRatingsBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**answerId** | **Number** | The answer id | [optional]
|
|
7
|
+
**_number** | **Number** | The number of previous user ratings to average. Leave blank to average all ratings. | [optional]
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# NeuralSeek.CategorizeApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**categorize**](CategorizeApi.md#categorize) | **POST** /categorize | Categorize text into an Intent & Category
|
|
8
|
+
|
|
9
|
+
<a name="categorize"></a>
|
|
10
|
+
# **categorize**
|
|
11
|
+
> InlineResponse2005 categorize(body)
|
|
12
|
+
|
|
13
|
+
Categorize text into an Intent & Category
|
|
14
|
+
|
|
15
|
+
Categorize text into an Intent & Category
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
```javascript
|
|
19
|
+
import {NeuralSeek} from 'neuralSeek';
|
|
20
|
+
let defaultClient = NeuralSeek.ApiClient.instance;
|
|
21
|
+
|
|
22
|
+
// Configure API key authorization: apiKey
|
|
23
|
+
let apiKey = defaultClient.authentications['apiKey'];
|
|
24
|
+
apiKey.apiKey = 'YOUR API KEY';
|
|
25
|
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
|
26
|
+
//apiKey.apiKeyPrefix = 'Token';
|
|
27
|
+
|
|
28
|
+
let apiInstance = new NeuralSeek.CategorizeApi();
|
|
29
|
+
let body = new NeuralSeek.CategorizeBody(); // CategorizeBody | The request object.
|
|
30
|
+
|
|
31
|
+
apiInstance.categorize(body, (error, data, response) => {
|
|
32
|
+
if (error) {
|
|
33
|
+
console.error(error);
|
|
34
|
+
} else {
|
|
35
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
|
|
42
|
+
Name | Type | Description | Notes
|
|
43
|
+
------------- | ------------- | ------------- | -------------
|
|
44
|
+
**body** | [**CategorizeBody**](CategorizeBody.md)| The request object. |
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
[**InlineResponse2005**](InlineResponse2005.md)
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[apiKey](../README.md#apiKey)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# NeuralSeek.ChatCompletionsBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**model** | **String** | The mAIstro agent to call |
|
|
7
|
+
**messages** | [**[ChatcompletionsMessages]**](ChatcompletionsMessages.md) | | [optional]
|
|
8
|
+
**tools** | [**ChatcompletionsTools**](ChatcompletionsTools.md) | | [optional]
|
|
9
|
+
**stream** | **Boolean** | Whether to stream responses as server-sent events | [optional]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# NeuralSeek.ChatcompletionsMessages
|
|
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
|
+
* `system` (value: `"system"`)
|
|
15
|
+
* `tool` (value: `"tool"`)
|
|
16
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# NeuralSeek.ChatcompletionsTools
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**type** | **String** | The type of tool to call. Only \"agent\" is valid | [optional]
|
|
7
|
+
**params** | [**[SeekStreamParams]**](SeekStreamParams.md) | An array of parameters to use when calling the mAIstro agent\" | [optional]
|
|
8
|
+
|
|
9
|
+
<a name="TypeEnum"></a>
|
|
10
|
+
## Enum: TypeEnum
|
|
11
|
+
|
|
12
|
+
* `agent` (value: `"agent"`)
|
|
13
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# NeuralSeek.ExtractBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**text** | **String** | The text to extract entitites from | [optional]
|
|
7
|
+
**language** | **String** | The 2-char language code to be used when generating a promptEntity response. Only set this if you want to override the configured language in NeuralSeek. | [optional]
|
|
8
|
+
**entities** | **String** | An array of objects, stringified. The properties of the object are name, description, and format | [optional]
|
|
9
|
+
**slots** | **Object** | Provide an object of variable names, with a type property set to an entity type to match to in total across multiple turns of a conversation. NeuralSeek will return a promptEntity to display to the user to continue to fil the slots. As slots are filled the value field will be populated. Continue to send this entire filed back as input thru the multiple turns of the conversation, untill Complete is set to true. Complete will be set to true when all slots are filled | [optional]
|
|
10
|
+
**confirmSlots** | **Boolean** | When using Slots, once all slots have been filled display a summary and ask for a confirmation before setting the 'complete' flag | [optional]
|
|
11
|
+
**confirmEverySlot** | **Boolean** | When using Slots, on every turn recite the slot that was just previously filled. | [optional]
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# NeuralSeek.ExtractEntitiesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**extractEntities**](ExtractEntitiesApi.md#extractEntities) | **POST** /extract | Extract entitites from text
|
|
8
|
+
|
|
9
|
+
<a name="extractEntities"></a>
|
|
10
|
+
# **extractEntities**
|
|
11
|
+
> InlineResponse2006 extractEntities(body)
|
|
12
|
+
|
|
13
|
+
Extract entitites from text
|
|
14
|
+
|
|
15
|
+
Extract entitites from text
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
```javascript
|
|
19
|
+
import {NeuralSeek} from 'neuralSeek';
|
|
20
|
+
let defaultClient = NeuralSeek.ApiClient.instance;
|
|
21
|
+
|
|
22
|
+
// Configure API key authorization: apiKey
|
|
23
|
+
let apiKey = defaultClient.authentications['apiKey'];
|
|
24
|
+
apiKey.apiKey = 'YOUR API KEY';
|
|
25
|
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
|
26
|
+
//apiKey.apiKeyPrefix = 'Token';
|
|
27
|
+
|
|
28
|
+
let apiInstance = new NeuralSeek.ExtractEntitiesApi();
|
|
29
|
+
let body = new NeuralSeek.ExtractBody(); // ExtractBody | The request object.
|
|
30
|
+
|
|
31
|
+
apiInstance.extractEntities(body, (error, data, response) => {
|
|
32
|
+
if (error) {
|
|
33
|
+
console.error(error);
|
|
34
|
+
} else {
|
|
35
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
|
|
42
|
+
Name | Type | Description | Notes
|
|
43
|
+
------------- | ------------- | ------------- | -------------
|
|
44
|
+
**body** | [**ExtractBody**](ExtractBody.md)| The request object. |
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
[**InlineResponse2006**](InlineResponse2006.md)
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[apiKey](../README.md#apiKey)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|