This commit is contained in:
seb
2026-10-05 16:10:46 +02:00
parent 8609a8f26d
commit 7d55b9774a
2 changed files with 4 additions and 4 deletions

View File

@@ -45,12 +45,12 @@ Exports: `LLMOrbiter`, `OpenRouterProvider`, `defineTool`, `ToolError`, `DirectR
### `orbiter.run(opts)`
`{ prompt, messages, model, tools, maxIterations=10, extraBody, signal }`.
`{ prompt, messages, model, tools, maxIterations=100, extraBody, signal }`.
- `prompt`: user message string to append (omit or pass `null` to continue without adding one).
- `messages`: transcript array to seed from; a leading `{ role: 'system' }` is the system prompt.
- `tools`: array of tool objects created with `defineTool()`.
- `maxIterations`: safety limit on tool-calling loop iterations (default: `10`).
- `maxIterations`: safety limit on tool-calling loop iterations (default: `100`).
- `extraBody`: extra parameters merged into provider request payload.
- `signal`: external `AbortSignal`.