@dudko.dev/agent-web 0.0.6 → 0.0.8

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/README.md CHANGED
@@ -165,7 +165,9 @@ const { object } = await generateStructured(
165
165
  { prompt: 'Suggest a title and tags for this article: …' },
166
166
  )
167
167
 
168
- // One round of tool-calling (native or prompted), normalized result:
168
+ // Tool-calling with feedback (native or prompted), normalized result. In both
169
+ // modes the model sees its tool results and can keep going, up to `maxSteps`
170
+ // rounds (default 4; prompted models get the results as a TOOL RESULTS turn):
169
171
  const { text: reply, toolCalls } = await runToolLoop(model, {
170
172
  mode: 'native',
171
173
  prompt: 'Add a title',
@@ -205,6 +207,7 @@ enters your core bundle.
205
207
  | `maxIterations` / `maxStepsPerTask` / `maxRevisions` | 8 / 4 / 2 | loop caps |
206
208
  | `chatTimeoutMs` | 120000 | per-call watchdog |
207
209
  | `replan` / `synthesize` | `true` | toggle phases |
210
+ | `replanAfter` | `'failure'` | replan trigger: `'failure'` \| `'always'` \| `(stepResult) => boolean \| Promise<boolean>` |
208
211
  | `compressAfterChars` | 12000 | summarize old history past this size |
209
212
 
210
213
  ## Docs