Interface: LLMRequest
@providerprotocol/ai / @providerprotocol/ai / LLMRequest
Interface: LLMRequest<TParams>
Section titled “Interface: LLMRequest<TParams>”Defined in: src/types/llm.ts:260
Internal
Request passed from the llm() core to providers.
Contains all information needed by a provider to execute inference. The config is required here because llm() resolves defaults before passing to providers.
Type Parameters
Section titled “Type Parameters”TParams
Section titled “TParams”TParams = unknown
Provider-specific parameter type
Properties
Section titled “Properties”config
Section titled “config”config:
ProviderConfig
Defined in: src/types/llm.ts:280
Provider infrastructure config (resolved by llm() core)
messages
Section titled “messages”messages:
Message[]
Defined in: src/types/llm.ts:262
All messages for this request (history + new input)
params?
Section titled “params?”
optionalparams:TParams
Defined in: src/types/llm.ts:271
Model-specific parameters (passed through unchanged)
signal?
Section titled “signal?”
optionalsignal:AbortSignal
Defined in: src/types/llm.ts:283
Abort signal for cancellation
structure?
Section titled “structure?”
optionalstructure:JSONSchema
Defined in: src/types/llm.ts:277
Structured output schema (if requested)
system?
Section titled “system?”
optionalsystem:string|unknown[]
Defined in: src/types/llm.ts:268
System prompt - string or provider-specific array format. Arrays are passed through directly to the provider.
tools?
Section titled “tools?”
optionaltools:Tool<unknown,unknown>[]
Defined in: src/types/llm.ts:274
Tools available for this request