Skip to content

DecisionResult

Namespace: E2E.Decision.Sdk

public sealed class DecisionResult

What RunAsync returns (the AI SDK’s DecisionResult).

Inheritance: object

View source

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

Value: IReadOnlyDictionary<string, DecisionAnswer>

public JsonElement? ProviderMetadata { get; init; }

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 model’s response has one.

Value: string

public required string ResponseModelId { get; init; }

The id of the model that served the call: the response’s, or the requested one.

Value: string

public DecisionRounding? Rounding { get; init; }

Value: DecisionRounding

public DateTimeOffset Timestamp { get; init; }

The model response’s timestamp, or the time the result was made.

Value: DateTimeOffset

public required DecisionUsage Usage { get; init; }

Value: DecisionUsage

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

Value: IReadOnlyList<string>