@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/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.&lt;base64&gt;</code> | Medias to add to the case in base64 (PDF, Image, Video, Audio) |
3862
- | params.propmpt | <code>string</code> | The actual prompt with context and text to apply to |
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
@@ -396,7 +396,7 @@
396
396
 
397
397
  <tr class="deep-level-1">
398
398
 
399
- <td class="name"><code>propmpt</code></td>
399
+ <td class="name"><code>prompt</code></td>
400
400
 
401
401
 
402
402
  <td class="type">
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&lt;base64>} params.medias Medias to add to the case in base64 (PDF, Image, Video, Audio)
145
- * @param {string} params.propmpt The actual prompt with context and text to apply to
145
+ * @param {string} params.prompt The actual prompt with context and text to apply to
146
146
  * @return {Promise&lt;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.propmpt, Joi.string().required().error(new Error('Provide a prompt')));
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.34",
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",