Skip to content

DecideOptions

Namespace: E2E.Decision.Sdk

public sealed class DecideOptions

What RunAsync takes (the arguments of the AI SDK’s experimental_decide).

Inheritance: object

View source

public IEvaluationModel? EvaluationModel { get; init; }

Deprecated: use Model. A deprecated evaluation model (doEvaluate).

Value: IEvaluationModel

public DownloadFunction? ExperimentalDownload { get; init; }

The download function URL file state needs (experimental_download). Use Create(CreateDownloadOptions) with a transport that validates DNS at connection time for untrusted URLs. The model’s own HTTP client is not used.

Value: DownloadFunction

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

Value: IReadOnlyDictionary<string, string>

public int? MaxOutputTokens { get; init; }

The most output tokens, for models that support it. At least 1.

Value: int?

public int? MaxRetries { get; init; }

Retries of a call that fails with a retryable error. Null is the AI SDK’s default, 2.

Value: int?

public IDecisionModel? Model { get; init; }

The model that decides. Set exactly one of Model, EvaluationModel, and ModelId.

Value: IDecisionModel

public string? ModelId { get; init; }

A model id, resolved through AiSdkDefaultProvider (the Gateway when none is set).

Value: string

public Func<DecideEndEvent, Task>? OnEnd { get; init; }

Called when the decide operation completes.

Value: Func<DecideEndEvent, Task>

public Func<DecideStartEvent, Task>? OnStart { get; init; }

Called when the decide operation begins.

Value: Func<DecideStartEvent, Task>

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

The provider options, keyed by provider name.

Value: IReadOnlyDictionary<string, JsonElement>

public required IReadOnlyDictionary<string, DecisionQuestion> Questions { get; init; }

Value: IReadOnlyDictionary<string, DecisionQuestion>

public string? Reasoning { get; init; }

Reasoning effort, for models that support it.

Value: string

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

User-defined runtime context. Treat runtime context as immutable.

Value: IReadOnlyDictionary<string, object>

public required IReadOnlyList<DecisionStatePart> State { get; init; }

Value: IReadOnlyList<DecisionStatePart>

public TelemetryOptions? Telemetry { get; init; }

Optional telemetry configuration.

Value: TelemetryOptions