@bpmsoftwaresolutions/ai-engine-client 1.1.1 → 1.1.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmsoftwaresolutions/ai-engine-client",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Thin npm client for the AI Engine operator and retrieval APIs",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/index.js CHANGED
@@ -288,6 +288,10 @@ export class AIEngineClient {
288
288
  return this._request('/api/work/start', { method: 'POST', body });
289
289
  }
290
290
 
291
+ async completeTurn(body = {}) {
292
+ return this._request('/api/turns/complete', { method: 'POST', body });
293
+ }
294
+
291
295
  async persistAssistantTurn(body) {
292
296
  return this._request('/api/v1/assistant-turns', { method: 'POST', body });
293
297
  }