AgentSettings

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

Link copied to clipboard
Link copied to clipboard

Serializer for typed call options used by ToolLoopAgent construction. Ignored when returned from prepareCall.

Link copied to clipboard

Engine-surface coroutine context used by ToolLoopAgent construction. Null means the agent's default engine dispatcher. Ignored when returned from prepareCall.

Link copied to clipboard

Tool-call repair callback used by ToolLoopAgent construction. Ignored when returned from prepareCall.

Link copied to clipboard

Secret for HMAC-signing tool approvals used by ToolLoopAgent construction. Ignored when returned from prepareCall.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Warning logger used by ToolLoopAgent construction. Null means the agent's default NoopLogger. Ignored when returned from prepareCall.

Link copied to clipboard
Link copied to clipboard

Legacy shorthand for ToolExecutionPolicy.maxParallelToolCalls used by ToolLoopAgent construction. Ignored when returned from prepareCall.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val output: Output<*>?

Structured-output contract used by ToolLoopAgent construction. Ignored when returned from prepareCall.

Link copied to clipboard

Per-invocation settings hook used by ToolLoopAgent construction. Ignored when returned from prepareCall.

Link copied to clipboard

Per-step settings hook used by ToolLoopAgent construction. Ignored when returned from prepareCall.

Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val seed: Int?
Link copied to clipboard
Link copied to clipboard

Loop stop condition used by ToolLoopAgent construction. Ignored when returned from prepareCall.

Link copied to clipboard

Telemetry settings used by ToolLoopAgent construction. Ignored when returned from prepareCall.

Link copied to clipboard
Link copied to clipboard

Tool execution policy used by ToolLoopAgent construction. Ignored when returned from prepareCall.

Link copied to clipboard
Link copied to clipboard
val topK: Int?
Link copied to clipboard
val topP: Float?