Agent Settings
Returned from prepareCall. Any non-null field overrides the agent default for this invocation only.
Sampler params (temperature, topP, topK, maxOutputTokens, stopSequences, seed) mirror Vercel AI SDK v6's CallSettings — same vocabulary that already exists on LanguageModelCallParams and is honored by every provider implementation. maxRetries is resolved on the same chain and applied by the agent around each non-streaming model round-trip. Resolution chain inside the agent loop is StepSettings ?: AgentSettings ?: agent-default ?: provider-default.
ToolLoopAgent also accepts this type as its public construction settings. Construction-only fields such as output, stopWhen, prepareCall, prepareStep, toolExecutionPolicy, telemetry, logger, and engineContext are read when the agent is constructed; they are ignored when an AgentSettings value is returned from prepareCall.
Since
0.3.0-beta01
Properties
Serializer for typed call options used by ToolLoopAgent construction. Ignored when returned from prepareCall.
Engine-surface coroutine context used by ToolLoopAgent construction. Null means the agent's default engine dispatcher. Ignored when returned from prepareCall.
Tool-call repair callback used by ToolLoopAgent construction. Ignored when returned from prepareCall.
Secret for HMAC-signing tool approvals used by ToolLoopAgent construction. Ignored when returned from prepareCall.
Warning logger used by ToolLoopAgent construction. Null means the agent's default NoopLogger. Ignored when returned from prepareCall.
Legacy shorthand for ToolExecutionPolicy.maxParallelToolCalls used by ToolLoopAgent construction. Ignored when returned from prepareCall.
Structured-output contract used by ToolLoopAgent construction. Ignored when returned from prepareCall.
Per-invocation settings hook used by ToolLoopAgent construction. Ignored when returned from prepareCall.
Per-step settings hook used by ToolLoopAgent construction. Ignored when returned from prepareCall.
Penalty for repeating already-emitted tokens (presence) and for tokens proportional to their previous frequency (frequency). Mirrors v6's CallSettings (per historical parity gap #3 + Phase 4C #21). Each provider applies them differently; some accept both, some only one, some neither. Null = provider default.
Loop stop condition used by ToolLoopAgent construction. Ignored when returned from prepareCall.
Telemetry settings used by ToolLoopAgent construction. Ignored when returned from prepareCall.
Tool execution policy used by ToolLoopAgent construction. Ignored when returned from prepareCall.