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

  • ProviderV4

Constructors

constructor

new TemporalProvider(options?): TemporalProvider

Parameters

NameType
options?TemporalProviderOptions

Returns

TemporalProvider

Properties

options

Optional Readonly options: TemporalProviderOptions


specificationVersion

Readonly specificationVersion: "v4"

Implementation of

ProviderV4.specificationVersion

Methods

embeddingModel

embeddingModel(modelId): EmbeddingModelV4

Parameters

NameType
modelIdstring

Returns

EmbeddingModelV4

Implementation of

ProviderV4.embeddingModel


imageModel

imageModel(_modelId): ImageModelV4

Parameters

NameType
_modelIdstring

Returns

ImageModelV4

Implementation of

ProviderV4.imageModel


languageModel

languageModel(modelId): LanguageModelV4

Parameters

NameType
modelIdstring

Returns

LanguageModelV4

Implementation of

ProviderV4.languageModel