@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/doc/api.md
CHANGED
|
@@ -3859,7 +3859,7 @@ Create new document
|
|
|
3859
3859
|
| params.context | <code>object</code> | The context to apply to a prompt |
|
|
3860
3860
|
| params.text | <code>string</code> | The text to add to the prompt |
|
|
3861
3861
|
| params.medias | <code>array.<base64></code> | Medias to add to the case in base64 (PDF, Image, Video, Audio) |
|
|
3862
|
-
| params.
|
|
3862
|
+
| params.prompt | <code>string</code> | The actual prompt with context and text to apply to |
|
|
3863
3863
|
|
|
3864
3864
|
**Example**
|
|
3865
3865
|
```js
|
package/docs/MyndAI.html
CHANGED
package/docs/ai.js.html
CHANGED
|
@@ -142,7 +142,7 @@ class MyndAI {
|
|
|
142
142
|
* @param {object} params.context The context to apply to a prompt
|
|
143
143
|
* @param {string} params.text The text to add to the prompt
|
|
144
144
|
* @param {array<base64>} params.medias Medias to add to the case in base64 (PDF, Image, Video, Audio)
|
|
145
|
-
* @param {string} params.
|
|
145
|
+
* @param {string} params.prompt The actual prompt with context and text to apply to
|
|
146
146
|
* @return {Promise<object>} data
|
|
147
147
|
* @return {boolean} data.success true|false for success
|
|
148
148
|
* @return {object} data.result the result of the AI call
|
|
@@ -169,7 +169,7 @@ class MyndAI {
|
|
|
169
169
|
|
|
170
170
|
try {
|
|
171
171
|
Joi.assert(params, Joi.object().required().error(new Error('params is required')));
|
|
172
|
-
Joi.assert(params.
|
|
172
|
+
Joi.assert(params.prompt, Joi.string().required().error(new Error('Provide a prompt')));
|
|
173
173
|
|
|
174
174
|
const apiCall = self._client
|
|
175
175
|
.post('/agents/explain', params, self._setHeader(authorization));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docbrasil/api-systemmanager",
|
|
3
3
|
"description": "Module API System Manager",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.36",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"htmldoc": "rm -rf docs && jsdoc api/** -d docs -t ./node_modules/better-docs",
|
|
7
7
|
"doc": "rm -rf doc && mkdir doc && jsdoc2md api/**/* api/* > doc/api.md",
|