DecisionModelResult
Namespace: E2E.Decision.Sdk
public sealed class DecisionModelResultWhat a decision model answers a call with (the AI SDK’s DecisionModelV4Result).
Inheritance: object
Properties
Section titled “Properties”Answers
Section titled “Answers”public required IReadOnlyDictionary<string, DecisionAnswer> Answers { get; init; }The answers by question id.
Value: IReadOnlyDictionary<string, DecisionAnswer>
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; init; }What the provider reported beside the answers, by provider name (for example the per-question confidence).
Value: JsonElement?
ResponseBody
Section titled “ResponseBody”public JsonElement? ResponseBody { get; init; }The provider’s response body, as it sent it (upstream’s response.body).
Value: JsonElement?
ResponseHeaders
Section titled “ResponseHeaders”public IReadOnlyDictionary<string, string>? ResponseHeaders { get; init; }The provider’s response headers (upstream’s response.headers), lowercase names.
Value: IReadOnlyDictionary<string, string>
ResponseId
Section titled “ResponseId”public string? ResponseId { get; init; }The id of the response (upstream’s response.id), when the provider sends one.
Value: string
ResponseModelId
Section titled “ResponseModelId”public string? ResponseModelId { get; init; }The id of the model that served the call, when the response names one.
Value: string
ResponseTimestamp
Section titled “ResponseTimestamp”public DateTimeOffset? ResponseTimestamp { get; init; }The timestamp of the response (upstream’s response.timestamp), when the provider sends one.
Value: DateTimeOffset?
Rounding
Section titled “Rounding”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
Warnings
Section titled “Warnings”public IReadOnlyList<string> Warnings { get; init; }Settings the provider did not support, as text.
Value: IReadOnlyList<string>