Skip to content

Interface: LLMHandler

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / LLMHandler

Defined in: src/types/provider.ts:255

Internal

LLM handler interface for providers.

Implemented by providers to enable language model capabilities.

TParams = unknown

Provider-specific parameter type

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.

LLMProvider<TParams>

The parent provider

void


bind(modelId): BoundLLMModel<TParams>

Defined in: src/types/provider.ts:262

Binds a model ID to create an executable model instance.

string

The model identifier to bind

BoundLLMModel<TParams>

A bound LLM model ready for inference