Skip to content

IDecisionModel

Namespace: E2E.Decision.Sdk

public interface IDecisionModel

A model that answers typed questions with probabilities (the AI SDK’s Experimental_DecisionModelV4). Only specification version v4 is accepted.

Derived: EvaluationDecisionModel, OpenAIDecisionModel, DecisionTypeSafeAiModel

View source

string ModelId { get; }

Value: string

string Provider { get; }

Value: string

string SpecificationVersion { get; }

The specification version this model implements. Only v4 is accepted.

Value: string

IReadOnlyList<string> SupportedQuestionTypes { get; }

The question types this model can answer.

Value: IReadOnlyList<string>

DoDecideAsync(DecisionModelCall, CancellationToken)

Section titled “DoDecideAsync(DecisionModelCall, CancellationToken)”
Task<DecisionModelResult> DoDecideAsync(DecisionModelCall call, CancellationToken cancellationToken)

Answers every question of <code class=“paramref”>call</code> in one request.

Parameters

Name Type Description
call DecisionModelCall
cancellationToken CancellationToken

Returns: Task<DecisionModelResult>