u
This commit is contained in:
@@ -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`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user