Skip to content

DecisionModelResult

Namespace: E2E.Decision.Sdk

public sealed class DecisionModelResult

What a decision model answers a call with (the AI SDK’s DecisionModelV4Result).

Inheritance: object

View source

public required IReadOnlyDictionary<string, DecisionAnswer> Answers { get; init; }

The answers by question id.

Value: IReadOnlyDictionary<string, DecisionAnswer>

public JsonElement? ProviderMetadata { get; init; }

What the provider reported beside the answers, by provider name (for example the per-question confidence).

Value: JsonElement?

public JsonElement? ResponseBody { get; init; }

The provider’s response body, as it sent it (upstream’s response.body).

Value: JsonElement?

public IReadOnlyDictionary<string, string>? ResponseHeaders { get; init; }

The provider’s response headers (upstream’s response.headers), lowercase names.

Value: IReadOnlyDictionary<string, string>

public string? ResponseId { get; init; }

The id of the response (upstream’s response.id), when the provider sends one.

Value: string

public string? ResponseModelId { get; init; }

The id of the model that served the call, when the response names one.

Value: string

public DateTimeOffset? ResponseTimestamp { get; init; }

The timestamp of the response (upstream’s response.timestamp), when the provider sends one.

Value: DateTimeOffset?

public DecisionRounding? Rounding { get; init; }

The rounding the numbers were reported at. Null when they were not rounded.

Value: DecisionRounding

public DecisionUsage? Usage { get; init; }

Value: DecisionUsage

public IReadOnlyList<string> Warnings { get; init; }

Settings the provider did not support, as text.

Value: IReadOnlyList<string>