Interface: EmbeddingHandler
@providerprotocol/ai / @providerprotocol/ai / EmbeddingHandler
Interface: EmbeddingHandler<TParams>
Section titled “Interface: EmbeddingHandler<TParams>”Defined in: src/types/provider.ts:282
Internal
Embedding handler interface for providers.
Implemented by providers to enable embedding capabilities.
Type Parameters
Section titled “Type Parameters”TParams
Section titled “TParams”TParams = unknown
Provider-specific parameter type
Properties
Section titled “Properties”supportedInputs
Section titled “supportedInputs”
readonlysupportedInputs: ("text"|"image")[]
Defined in: src/types/provider.ts:284
Supported input types for embeddings
Methods
Section titled “Methods”_setProvider()?
Section titled “_setProvider()?”
optional_setProvider(provider):void
Defined in: src/types/provider.ts:300
Internal
Sets the parent provider reference.
Parameters
Section titled “Parameters”provider
Section titled “provider”EmbeddingProvider<TParams>
The parent provider
Returns
Section titled “Returns”void
bind()
Section titled “bind()”bind(
modelId):BoundEmbeddingModel<TParams>
Defined in: src/types/provider.ts:292
Binds a model ID to create an executable embedding model.
Parameters
Section titled “Parameters”modelId
Section titled “modelId”string
The model identifier to bind
Returns
Section titled “Returns”BoundEmbeddingModel<TParams>
A bound embedding model ready for use