@knowlearning/agents 0.9.44 → 0.9.45

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.
@@ -180,6 +180,7 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
180
180
  const session = await sessionPromise
181
181
  const id = uuid()
182
182
  const requested = Date.now()
183
+ await new Promise(r => r()) // ensure next interaction gets sent on its own
183
184
  session.queries[id] = { query, params, domain }
184
185
  const { rows } = await lastMessageResponse()
185
186
  session.queries[id].agent_latency = Date.now() - requested
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.9.44",
3
+ "version": "0.9.45",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",