IDecisionModel
Namespace: E2E.Decision.Sdk
public interface IDecisionModelA model that answers typed questions with probabilities (the AI SDK’s Experimental_DecisionModelV4). Only
specification version v4 is accepted.
Derived: EvaluationDecisionModel, OpenAIDecisionModel, DecisionTypeSafeAiModel
Properties
Section titled “Properties”ModelId
Section titled “ModelId”string ModelId { get; }Value: string
Provider
Section titled “Provider”string Provider { get; }Value: string
SpecificationVersion
Section titled “SpecificationVersion”string SpecificationVersion { get; }The specification version this model implements. Only v4 is accepted.
Value: string
SupportedQuestionTypes
Section titled “SupportedQuestionTypes”IReadOnlyList<string> SupportedQuestionTypes { get; }The question types this model can answer.
Value: IReadOnlyList<string>
Methods
Section titled “Methods”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>