Interface: BoundLLMModel
@providerprotocol/ai / @providerprotocol/ai / BoundLLMModel
Interface: BoundLLMModel<TParams>
Section titled “Interface: BoundLLMModel<TParams>”Defined in: src/types/llm.ts:331
Bound LLM model - full definition.
Represents a model bound to a specific provider and model ID, ready to execute inference requests.
Type Parameters
Section titled “Type Parameters”TParams
Section titled “TParams”TParams = unknown
Provider-specific parameter type
Properties
Section titled “Properties”capabilities
Section titled “capabilities”
readonlycapabilities:LLMCapabilities
Defined in: src/types/llm.ts:339
Provider API capabilities
modelId
Section titled “modelId”
readonlymodelId:string
Defined in: src/types/llm.ts:333
The model identifier
provider
Section titled “provider”
readonlyprovider:LLMProvider<TParams>
Defined in: src/types/llm.ts:336
Reference to the parent provider
Methods
Section titled “Methods”complete()
Section titled “complete()”complete(
request):Promise<LLMResponse>
Defined in: src/types/llm.ts:347
Executes a single non-streaming inference request.
Parameters
Section titled “Parameters”request
Section titled “request”LLMRequest<TParams>
The inference request
Returns
Section titled “Returns”Promise<LLMResponse>
Promise resolving to the response
stream()
Section titled “stream()”stream(
request):LLMStreamResult
Defined in: src/types/llm.ts:355
Executes a single streaming inference request.
Parameters
Section titled “Parameters”request
Section titled “request”LLMRequest<TParams>
The inference request
Returns
Section titled “Returns”Stream result with events and final response