ReadonlysystemReadonlyuserReadonlytoolsOptional ReadonlyturnMaximum agent turns. When omitted, the adapter uses the resolved
model's profile.maxRecommendedTurnBudget (claude-opus = 20,
o-reasoning = 25, claude-haiku / gemini-flash = 8, defaults to 10).
ReadonlyonOptional ReadonlyonOptional ReadonlysignalOptional ReadonlytemperatureSampling temperature passed through to IModelAdapter.complete.
Optional ReadonlymaxPer-turn maxTokens passed through to IModelAdapter.complete.
Arguments to
runAgent.onToolCallis the harness's tool-router; the adapter awaits itsPromise<ToolResult>so synchronous and async harness execution both work. Per-tool timeouts are the harness's responsibility (the adapter doesn't impose one — see #2529 design notes).onTurn(optional) fires once after each turn completes, giving operators incremental progress visibility.signal(optional) propagates external cancellation asstopReason: 'cancelled'.