Skip to content

Interface: EmbeddingHandler

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / EmbeddingHandler

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

Internal

Embedding handler interface for providers.

Implemented by providers to enable embedding capabilities.

TParams = unknown

Provider-specific parameter type

readonly supportedInputs: ("text" | "image")[]

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

Supported input types for embeddings

optional _setProvider(provider): void

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

Internal

Sets the parent provider reference.

EmbeddingProvider<TParams>

The parent provider

void


bind(modelId): BoundEmbeddingModel<TParams>

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

Binds a model ID to create an executable embedding model.

string

The model identifier to bind

BoundEmbeddingModel<TParams>

A bound embedding model ready for use