@memori.ai/memori-api-client 0.10.0 → 0.10.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/CHANGELOG.md +7 -0
- package/dist/engine/nlp.d.ts +0 -23
- package/dist/memori-api-client.cjs.development.js +0 -69
- package/dist/memori-api-client.cjs.development.js.map +1 -1
- package/dist/memori-api-client.cjs.production.min.js +1 -1
- package/dist/memori-api-client.cjs.production.min.js.map +1 -1
- package/dist/memori-api-client.esm.js +0 -69
- package/dist/memori-api-client.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/engine/nlp.ts +0 -39
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [0.10.1](https://github.com/memori-ai/memori-api-client/compare/v0.10.0...v0.10.1) (2023-01-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Changes
|
|
7
|
+
|
|
8
|
+
* remove internal api not usable from public ([d3d3656](https://github.com/memori-ai/memori-api-client/commit/d3d3656619c45f192ffd0ea2bfb2391cb9c483c5))
|
|
9
|
+
|
|
3
10
|
## [0.10.0](https://github.com/memori-ai/memori-api-client/compare/v0.9.0...v0.10.0) (2023-01-19)
|
|
4
11
|
|
|
5
12
|
|
package/dist/engine/nlp.d.ts
CHANGED
|
@@ -57,29 +57,6 @@ declare const _default: (apiUrl: string) => {
|
|
|
57
57
|
*/
|
|
58
58
|
undefinedWords: string[];
|
|
59
59
|
}>;
|
|
60
|
-
/**
|
|
61
|
-
* Tries to suggest the answer for a question, using as much content as possible from the session's associated Memori object.
|
|
62
|
-
* @param {string} sessionId The session ID
|
|
63
|
-
* @param {string} text Text of the sentence.
|
|
64
|
-
*/
|
|
65
|
-
suggestAnswer: (sessionId: string, text: string) => Promise<ResponseSpec & {
|
|
66
|
-
/**
|
|
67
|
-
* Suggested answer. May be null if no answer could be suggested.
|
|
68
|
-
*/
|
|
69
|
-
answer: string;
|
|
70
|
-
}>;
|
|
71
|
-
/**
|
|
72
|
-
* Tries to suggest questions for an answer.
|
|
73
|
-
* Differently from ```SuggestAnswer```, no content from the session's associated Memori object is used.
|
|
74
|
-
* @param {string} sessionId The session ID
|
|
75
|
-
* @param {string} text Text of the sentence.
|
|
76
|
-
*/
|
|
77
|
-
suggestQuestions: (sessionId: string, text: string) => Promise<ResponseSpec & {
|
|
78
|
-
/**
|
|
79
|
-
* Suggested questions. May be null or empty if no questions could be suggested.
|
|
80
|
-
*/
|
|
81
|
-
questions: string[];
|
|
82
|
-
}>;
|
|
83
60
|
};
|
|
84
61
|
/***************
|
|
85
62
|
* *
|
|
@@ -2753,75 +2753,6 @@ var nlp = (function (apiUrl) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
|
|
2755
2755
|
return checkWords;
|
|
2756
|
-
}(),
|
|
2757
|
-
|
|
2758
|
-
/**
|
|
2759
|
-
* Tries to suggest the answer for a question, using as much content as possible from the session's associated Memori object.
|
|
2760
|
-
* @param {string} sessionId The session ID
|
|
2761
|
-
* @param {string} text Text of the sentence.
|
|
2762
|
-
*/
|
|
2763
|
-
suggestAnswer: function () {
|
|
2764
|
-
var _suggestAnswer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(sessionId, text) {
|
|
2765
|
-
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
2766
|
-
while (1) {
|
|
2767
|
-
switch (_context6.prev = _context6.next) {
|
|
2768
|
-
case 0:
|
|
2769
|
-
return _context6.abrupt("return", apiFetcher("/SuggestAnswer/" + sessionId, {
|
|
2770
|
-
method: 'POST',
|
|
2771
|
-
apiUrl: apiUrl,
|
|
2772
|
-
body: {
|
|
2773
|
-
text: text
|
|
2774
|
-
}
|
|
2775
|
-
}));
|
|
2776
|
-
|
|
2777
|
-
case 1:
|
|
2778
|
-
case "end":
|
|
2779
|
-
return _context6.stop();
|
|
2780
|
-
}
|
|
2781
|
-
}
|
|
2782
|
-
}, _callee6);
|
|
2783
|
-
}));
|
|
2784
|
-
|
|
2785
|
-
function suggestAnswer(_x14, _x15) {
|
|
2786
|
-
return _suggestAnswer.apply(this, arguments);
|
|
2787
|
-
}
|
|
2788
|
-
|
|
2789
|
-
return suggestAnswer;
|
|
2790
|
-
}(),
|
|
2791
|
-
|
|
2792
|
-
/**
|
|
2793
|
-
* Tries to suggest questions for an answer.
|
|
2794
|
-
* Differently from ```SuggestAnswer```, no content from the session's associated Memori object is used.
|
|
2795
|
-
* @param {string} sessionId The session ID
|
|
2796
|
-
* @param {string} text Text of the sentence.
|
|
2797
|
-
*/
|
|
2798
|
-
suggestQuestions: function () {
|
|
2799
|
-
var _suggestQuestions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(sessionId, text) {
|
|
2800
|
-
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
2801
|
-
while (1) {
|
|
2802
|
-
switch (_context7.prev = _context7.next) {
|
|
2803
|
-
case 0:
|
|
2804
|
-
return _context7.abrupt("return", apiFetcher("/SuggestQuestions/" + sessionId, {
|
|
2805
|
-
method: 'POST',
|
|
2806
|
-
apiUrl: apiUrl,
|
|
2807
|
-
body: {
|
|
2808
|
-
text: text
|
|
2809
|
-
}
|
|
2810
|
-
}));
|
|
2811
|
-
|
|
2812
|
-
case 1:
|
|
2813
|
-
case "end":
|
|
2814
|
-
return _context7.stop();
|
|
2815
|
-
}
|
|
2816
|
-
}
|
|
2817
|
-
}, _callee7);
|
|
2818
|
-
}));
|
|
2819
|
-
|
|
2820
|
-
function suggestQuestions(_x16, _x17) {
|
|
2821
|
-
return _suggestQuestions.apply(this, arguments);
|
|
2822
|
-
}
|
|
2823
|
-
|
|
2824
|
-
return suggestQuestions;
|
|
2825
2756
|
}()
|
|
2826
2757
|
};
|
|
2827
2758
|
});
|