Skip to content

CustomProvider

Namespace: E2E.Decision.Sdk

public sealed class CustomProvider : IDecisionProvider

The decision models of the AI SDK’s customProvider (custom-provider.ts): a provider that serves its own models and falls back to another provider.

Inheritance: object

Implements: IDecisionProvider

View source

public CustomProvider(CustomProviderOptions options)

Upstream’s customProvider.

Parameters

Name Type Description
options CustomProviderOptions

public IDecisionModel DecisionModel(string modelId)

Creates a decision model (upstream’s decisionModel).

Parameters

Name Type Description
modelId string

Returns: IDecisionModel

public EvaluationDecisionModel EvaluationModel(string modelId)

Deprecated: use DecisionModel(string).

Parameters

Name Type Description
modelId string

Returns: EvaluationDecisionModel