Interface: LLMHandler
@providerprotocol/ai / @providerprotocol/ai / LLMHandler
Interface: LLMHandler<TParams>
Section titled “Interface: LLMHandler<TParams>”Defined in: src/types/provider.ts:255
Internal
LLM handler interface for providers.
Implemented by providers to enable language model capabilities.
Type Parameters
Section titled “Type Parameters”TParams
Section titled “TParams”TParams = unknown
Provider-specific parameter type
Methods
Section titled “Methods”_setProvider()?
Section titled “_setProvider()?”
optional_setProvider(provider):void
Defined in: src/types/provider.ts:271
Internal
Sets the parent provider reference. Called by createProvider() after the provider is constructed.
Parameters
Section titled “Parameters”provider
Section titled “provider”LLMProvider<TParams>
The parent provider
Returns
Section titled “Returns”void
bind()
Section titled “bind()”bind(
modelId):BoundLLMModel<TParams>
Defined in: src/types/provider.ts:262
Binds a model ID to create an executable model instance.
Parameters
Section titled “Parameters”modelId
Section titled “modelId”string
The model identifier to bind
Returns
Section titled “Returns”BoundLLMModel<TParams>
A bound LLM model ready for inference