TypeSafeAiProvider
Namespace: E2E.Decision.Sdk.TypeSafeAi
public sealed class TypeSafeAiProviderThe AI SDK’s createTypeSafeAi and the typeSafeAi provider (typesafe-ai-provider.ts), for TypeSafe’s experimental
decision capability: typeSafeAi.decisionModel('jev-latest').
Inheritance: object
Constructors
Section titled “Constructors”TypeSafeAiProvider(TypeSafeAiProviderSettings?)
Section titled “TypeSafeAiProvider(TypeSafeAiProviderSettings?)”public TypeSafeAiProvider(TypeSafeAiProviderSettings? settings = null)Upstream’s createTypeSafeAi.
Parameters
| Name | Type | Description |
|---|---|---|
settings |
TypeSafeAiProviderSettings |
Properties
Section titled “Properties”SpecificationVersion
Section titled “SpecificationVersion”public string SpecificationVersion { get; }Upstream’s specificationVersion.
Value: string
TypeSafeAi
Section titled “TypeSafeAi”public static TypeSafeAiProvider TypeSafeAi { get; }Upstream’s typeSafeAi: the provider the environment configures.
Value: TypeSafeAiProvider
Methods
Section titled “Methods”DecisionModel(string)
Section titled “DecisionModel(string)”public DecisionTypeSafeAiModel DecisionModel(string modelId)Creates a decision model (upstream’s decisionModel).
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: DecisionTypeSafeAiModel
EmbeddingModel(string)
Section titled “EmbeddingModel(string)”public void EmbeddingModel(string modelId)Upstream’s embeddingModel: TypeSafe has none, so it throws NoSuchModelException.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
EvaluationModel(string)
Section titled “EvaluationModel(string)”public DecisionTypeSafeAiModel EvaluationModel(string modelId)Deprecated: use DecisionModel(string).
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: DecisionTypeSafeAiModel
ImageModel(string)
Section titled “ImageModel(string)”public void ImageModel(string modelId)Upstream’s imageModel: TypeSafe has none, so it throws NoSuchModelException.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
LanguageModel(string)
Section titled “LanguageModel(string)”public void LanguageModel(string modelId)Upstream’s languageModel: TypeSafe has none, so it throws NoSuchModelException.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |