LLMRequest
Interface: LLMRequest
Defined in: src/adapters/types.ts:93
Properties
cacheMarkers?
readonlyoptionalcacheMarkers?: readonlyCacheMarker[]
Defined in: src/adapters/types.ts:112
Cache markers (v2.6+) — provider-agnostic prefix-cache hints
populated by CacheStrategy.prepareRequest after the agent's
CacheGate decider routes to apply-markers. Each marker
identifies a cacheable prefix in system / tools / messages.
Providers that support caching (Anthropic, Bedrock-Claude) read this field and translate to their wire format. Providers without cache support (OpenAI auto-cache, Mock, NoOp) ignore it.
maxTokens?
readonlyoptionalmaxTokens?:number
Defined in: src/adapters/types.ts:99
messages
readonlymessages: readonlyLLMMessage[]
Defined in: src/adapters/types.ts:95
model
readonlymodel:string
Defined in: src/adapters/types.ts:97
signal?
readonlyoptionalsignal?:AbortSignal
Defined in: src/adapters/types.ts:101
stop?
readonlyoptionalstop?: readonlystring[]
Defined in: src/adapters/types.ts:100
systemPrompt?
readonlyoptionalsystemPrompt?:string
Defined in: src/adapters/types.ts:94
temperature?
readonlyoptionaltemperature?:number
Defined in: src/adapters/types.ts:98
thinking?
readonlyoptionalthinking?:object
Defined in: src/adapters/types.ts:136
v2.14 — request the LLM emit reasoning/thinking content on this call.
Activation: presence of this field tells the provider to ASK for
thinking. Anthropic translates to thinking: { type: 'enabled', budget_tokens: budget } on the wire. OpenAI ignores (o1/o3
thinking is selected at the model id level, not per-request).
budget is the maximum reasoning tokens the model may spend.
Anthropic requires it; recommended range 1024-32000 for
claude-sonnet-4-5 / opus-4-5. Models that don't support extended
thinking will reject the request with HTTP 400 — pick a supported
model when setting this field.
Independent from LLMMessage.thinkingBlocks (the response side):
request.thinking= activation (consumer ASKS for thinking)message.thinkingBlocks= round-trip (consumer ECHOES prior assistant turn's signed blocks back to the model)
Set via AgentBuilder.thinking({ budget }) — applied to every
LLM call the agent makes. Leave undefined to call without thinking
(the v2.13 default).
budget
readonlybudget:number
tools?
readonlyoptionaltools?: readonlyLLMToolSchema[]
Defined in: src/adapters/types.ts:96
