Skip to main content

Class: TemporalProvider

aisdk.TemporalProvider

A Temporal-specific provider implementation that creates AI models which execute through Temporal activities. This provider integrates AI SDK models with Temporal's execution model to ensure reliable, durable AI model invocations.

The AI SDK integration is an experimental feature; APIs may change without notice.

Implements

  • ProviderV3

Constructors

constructor

new TemporalProvider(options?): TemporalProvider

Parameters

NameType
options?TemporalProviderOptions

Returns

TemporalProvider

Properties

options

Optional Readonly options: TemporalProviderOptions


specificationVersion

Readonly specificationVersion: "v3"

Implementation of

ProviderV3.specificationVersion

Methods

embeddingModel

embeddingModel(modelId): EmbeddingModelV3

Parameters

NameType
modelIdstring

Returns

EmbeddingModelV3

Implementation of

ProviderV3.embeddingModel


imageModel

imageModel(_modelId): ImageModelV3

Parameters

NameType
_modelIdstring

Returns

ImageModelV3

Implementation of

ProviderV3.imageModel


languageModel

languageModel(modelId): LanguageModelV3

Parameters

NameType
modelIdstring

Returns

LanguageModelV3

Implementation of

ProviderV3.languageModel


transcriptionModel

transcriptionModel(_modelId): TranscriptionModelV3

Parameters

NameType
_modelIdstring

Returns

TranscriptionModelV3

Implementation of

ProviderV3.transcriptionModel