This commit is contained in:
seb
2026-10-01 10:18:57 +02:00
parent 5dee37cb2b
commit a58991b9f8
3 changed files with 114 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ Exports: `LLMOrbiter`, `OpenRouterProvider`, `defineTool`, `ToolError`, `DirectR
- `signal`: external `AbortSignal`.
Loop: send messages + tool specs -> if `tool_calls` come back, invoke locals and feed results
back -> repeat until no more tool calls or `maxIterations`.
back -> if an iteration returns neither tool calls nor content (no response), the loop continues -> repeat until a response is produced or `maxIterations`.
Returns:
- `content`: final assistant message text (or `null`).