Skip to content

TypeSafeAiProvider

Namespace: E2E.Decision.Sdk.TypeSafeAi

public sealed class TypeSafeAiProvider

The AI SDK’s createTypeSafeAi and the typeSafeAi provider (typesafe-ai-provider.ts), for TypeSafe’s experimental decision capability: typeSafeAi.decisionModel('jev-latest').

Inheritance: object

View source

TypeSafeAiProvider(TypeSafeAiProviderSettings?)

Section titled “TypeSafeAiProvider(TypeSafeAiProviderSettings?)”
public TypeSafeAiProvider(TypeSafeAiProviderSettings? settings = null)

Upstream’s createTypeSafeAi.

Parameters

Name Type Description
settings TypeSafeAiProviderSettings

public string SpecificationVersion { get; }

Upstream’s specificationVersion.

Value: string

public static TypeSafeAiProvider TypeSafeAi { get; }

Upstream’s typeSafeAi: the provider the environment configures.

Value: TypeSafeAiProvider

public DecisionTypeSafeAiModel DecisionModel(string modelId)

Creates a decision model (upstream’s decisionModel).

Parameters

Name Type Description
modelId string

Returns: DecisionTypeSafeAiModel

public void EmbeddingModel(string modelId)

Upstream’s embeddingModel: TypeSafe has none, so it throws NoSuchModelException.

Parameters

Name Type Description
modelId string

public DecisionTypeSafeAiModel EvaluationModel(string modelId)

Deprecated: use DecisionModel(string).

Parameters

Name Type Description
modelId string

Returns: DecisionTypeSafeAiModel

public void ImageModel(string modelId)

Upstream’s imageModel: TypeSafe has none, so it throws NoSuchModelException.

Parameters

Name Type Description
modelId string

public void LanguageModel(string modelId)

Upstream’s languageModel: TypeSafe has none, so it throws NoSuchModelException.

Parameters

Name Type Description
modelId string