Skip to content

DecisionModelCallEndEvent

Namespace: E2E.Decision.Sdk

public record DecisionModelCallEndEvent : DecisionModelCallStartEvent, IEquatable<TelemetryEvent>, IEquatable<DecisionModelCallStartEvent>, IEquatable<DecisionModelCallEndEvent>

The event fired after the decision model response has been validated (the AI SDK’s DecisionModelCallEndEvent): the result of the logical model call, including any retries.

Inheritance: object → TelemetryEvent → DecisionModelCallStartEvent

Implements: IEquatable<TelemetryEvent>, IEquatable<DecisionModelCallStartEvent>, IEquatable<DecisionModelCallEndEvent>

View source

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

Exactly one answer per question ID.

Value: IReadOnlyDictionary<string, DecisionAnswer>

public JsonElement? ProviderMetadata { get; init; }

Optional provider-specific metadata.

Value: JsonElement?

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 DecisionRounding? Rounding { get; init; }

Provider-declared decimal precision for probabilities and scores.

Value: DecisionRounding

public DateTimeOffset? Timestamp { get; init; }

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

Value: DateTimeOffset?

public DecisionUsage? Usage { get; init; }

Token usage reported by the decision model.

Value: DecisionUsage

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

Warnings from the decision model.

Value: IReadOnlyList<string>