Skip to content

DecideEndEvent

Namespace: E2E.Decision.Sdk

public record DecideEndEvent : DecideStartEvent, IEquatable<TelemetryEvent>, IEquatable<DecideStartEvent>, IEquatable<DecideEndEvent>

The event passed to OnEnd (the AI SDK’s DecideEndEvent), when the operation completes successfully. The result’s response is flattened as on DecisionResult.

Inheritance: object → TelemetryEvent → DecideStartEvent

Implements: IEquatable<TelemetryEvent>, IEquatable<DecideStartEvent>, IEquatable<DecideEndEvent>

View source

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

Exactly one typed answer per question ID.

Value: IReadOnlyDictionary<string, DecisionAnswer>

public JsonElement? ProviderMetadata { get; init; }

Optional provider-specific metadata.

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 required string ResponseModelId { get; init; }

The resolved model ID of the response.

Value: string

public DecisionRounding? Rounding { get; init; }

Provider-declared decimal precision for probabilities and scores.

Value: DecisionRounding

public required DateTimeOffset Timestamp { get; init; }

The timestamp of the response.

Value: DateTimeOffset

public required DecisionUsage Usage { get; init; }

Token usage for the decision operation.

Value: DecisionUsage

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

Warnings from the decision model.

Value: IReadOnlyList<string>