DecideOptions
Namespace: E2E.Decision.Sdk
public sealed class DecideOptionsWhat RunAsync takes (the arguments of the AI SDK’s experimental_decide).
Inheritance: object
Properties
Section titled “Properties”EvaluationModel
Section titled “EvaluationModel”public IEvaluationModel? EvaluationModel { get; init; }Deprecated: use Model. A deprecated evaluation model (doEvaluate).
Value: IEvaluationModel
ExperimentalDownload
Section titled “ExperimentalDownload”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
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; init; }Value: IReadOnlyDictionary<string, string>
MaxOutputTokens
Section titled “MaxOutputTokens”public int? MaxOutputTokens { get; init; }The most output tokens, for models that support it. At least 1.
Value: int?
MaxRetries
Section titled “MaxRetries”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
ModelId
Section titled “ModelId”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>
OnStart
Section titled “OnStart”public Func<DecideStartEvent, Task>? OnStart { get; init; }Called when the decide operation begins.
Value: Func<DecideStartEvent, Task>
ProviderOptions
Section titled “ProviderOptions”public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; init; }The provider options, keyed by provider name.
Value: IReadOnlyDictionary<string, JsonElement>
Questions
Section titled “Questions”public required IReadOnlyDictionary<string, DecisionQuestion> Questions { get; init; }Value: IReadOnlyDictionary<string, DecisionQuestion>
Reasoning
Section titled “Reasoning”public string? Reasoning { get; init; }Reasoning effort, for models that support it.
Value: string
RuntimeContext
Section titled “RuntimeContext”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>
Telemetry
Section titled “Telemetry”public TelemetryOptions? Telemetry { get; init; }Optional telemetry configuration.
Value: TelemetryOptions