@lowire/loop 0.0.16 → 0.0.18

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/lib/loop.js +1 -3
  2. package/package.json +2 -3
package/lib/loop.js CHANGED
@@ -113,7 +113,7 @@ class Loop {
113
113
  continue;
114
114
  }
115
115
  toolCall.result = result;
116
- if (args._is_done)
116
+ if (args._is_done && !result.isError)
117
117
  return { result, status: 'ok', usage: totalUsage, turns };
118
118
  }
119
119
  catch (error) {
@@ -128,8 +128,6 @@ class Loop {
128
128
  }
129
129
  }
130
130
  }
131
- if (options.summarize)
132
- return this._summarizeConversation(task, conversation, options);
133
131
  throw new Error('Failed to perform step, max attempts reached');
134
132
  }
135
133
  _summarizeConversation(task, conversation, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowire/loop",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "Small agentic loop",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,8 +14,7 @@
14
14
  "name": "Microsoft Corporation"
15
15
  },
16
16
  "license": "Apache-2.0",
17
- "scripts": {
18
- },
17
+ "scripts": {},
19
18
  "exports": {
20
19
  ".": {
21
20
  "import": "./index.mjs",