@docbrasil/api-systemmanager 1.1.34 → 1.1.36
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/api/ai.js +2 -2
- package/dist/bundle.cjs +2 -2
- package/dist/bundle.mjs +1 -1
- package/doc/api.md +1 -1
- package/docs/MyndAI.html +1 -1
- package/docs/ai.js.html +2 -2
- package/package.json +1 -1
package/api/ai.js
CHANGED
|
@@ -55,7 +55,7 @@ class MyndAI {
|
|
|
55
55
|
* @param {object} params.context The context to apply to a prompt
|
|
56
56
|
* @param {string} params.text The text to add to the prompt
|
|
57
57
|
* @param {array<base64>} params.medias Medias to add to the case in base64 (PDF, Image, Video, Audio)
|
|
58
|
-
* @param {string} params.
|
|
58
|
+
* @param {string} params.prompt The actual prompt with context and text to apply to
|
|
59
59
|
* @return {Promise<object>} data
|
|
60
60
|
* @return {boolean} data.success true|false for success
|
|
61
61
|
* @return {object} data.result the result of the AI call
|
|
@@ -82,7 +82,7 @@ class MyndAI {
|
|
|
82
82
|
|
|
83
83
|
try {
|
|
84
84
|
Joi.assert(params, Joi.object().required().error(new Error('params is required')));
|
|
85
|
-
Joi.assert(params.
|
|
85
|
+
Joi.assert(params.prompt, Joi.string().required().error(new Error('Provide a prompt')));
|
|
86
86
|
|
|
87
87
|
const apiCall = self._client
|
|
88
88
|
.post('/agents/explain', params, self._setHeader(authorization));
|
package/dist/bundle.cjs
CHANGED
|
@@ -14018,7 +14018,7 @@ class MyndAI {
|
|
|
14018
14018
|
* @param {object} params.context The context to apply to a prompt
|
|
14019
14019
|
* @param {string} params.text The text to add to the prompt
|
|
14020
14020
|
* @param {array<base64>} params.medias Medias to add to the case in base64 (PDF, Image, Video, Audio)
|
|
14021
|
-
* @param {string} params.
|
|
14021
|
+
* @param {string} params.prompt The actual prompt with context and text to apply to
|
|
14022
14022
|
* @return {Promise<object>} data
|
|
14023
14023
|
* @return {boolean} data.success true|false for success
|
|
14024
14024
|
* @return {object} data.result the result of the AI call
|
|
@@ -14045,7 +14045,7 @@ class MyndAI {
|
|
|
14045
14045
|
|
|
14046
14046
|
try {
|
|
14047
14047
|
Joi__default["default"].assert(params, Joi__default["default"].object().required().error(new Error('params is required')));
|
|
14048
|
-
Joi__default["default"].assert(params.
|
|
14048
|
+
Joi__default["default"].assert(params.prompt, Joi__default["default"].string().required().error(new Error('Provide a prompt')));
|
|
14049
14049
|
|
|
14050
14050
|
const apiCall = self._client
|
|
14051
14051
|
.post('/agents/explain', params, self._setHeader(authorization));
|