Interface: EmbeddingRequest
@providerprotocol/ai / @providerprotocol/ai / EmbeddingRequest
Interface: EmbeddingRequest<TParams>
Section titled “Interface: EmbeddingRequest<TParams>”Defined in: src/types/provider.ts:366
Internal
Request passed to provider’s embed method.
Type Parameters
Section titled “Type Parameters”TParams
Section titled “TParams”TParams = unknown
Properties
Section titled “Properties”config
Section titled “config”config:
ProviderConfig
Defined in: src/types/provider.ts:372
Provider infrastructure config
inputs
Section titled “inputs”inputs:
EmbeddingInput[]
Defined in: src/types/provider.ts:368
Inputs to embed
inputType?
Section titled “inputType?”
optionalinputType:"document"|"query"
Defined in: src/types/provider.ts:376
Input type hint for provider-specific optimization
params?
Section titled “params?”
optionalparams:TParams
Defined in: src/types/provider.ts:370
Provider-specific parameters (passed through unchanged)
signal?
Section titled “signal?”
optionalsignal:AbortSignal
Defined in: src/types/provider.ts:374
Abort signal for cancellation