Skip to content

DecideRequest

Namespace: Vercel.AI.Operations

public sealed class DecideRequest : OperationRequest

Options for CancellationToken).

Inheritance: object → OperationRequest

View source

public double? MaxOutputTokens { get; set; }

Maximum output tokens for supported models. Must be an integer of at least 1 when set.

Value: double?

View source

public IDecisionCaller? Model { get; set; }

Explicit decision model. Wins over ModelId when both are set.

Value: IDecisionCaller

View source

public string? ModelId { get; set; }

Decision model id, used when Model is null. It goes through DefaultProvider, or Gateway when none is set.

Value: string

View source

public Func<DecideEvent, Task>? OnEnd { get; set; }

Called when the decision completes. Receives the full runtime context.

Value: Func<DecideEvent, Task>

View source

public Func<DecideEvent, Task>? OnStart { get; set; }

Called when the decision begins. Receives the full runtime context.

Value: Func<DecideEvent, Task>

View source

public IReadOnlyDictionary<string, DecisionQuestion>? Questions { get; set; }

Nonempty question map.

Value: IReadOnlyDictionary<string, DecisionQuestion>

View source

public string? Reasoning { get; set; }

Reasoning effort for supported models: provider-default, none, minimal, low, medium, high, xhigh, or max. Language-model adapters default to none; provider-default uses the wrapped language model’s own default instead. Native decision providers return an unsupported-setting warning.

Value: string

View source

public DecisionState? State { get; set; }

Shared state: a string, a JSON object, or a list of parts. A JSON array is not valid state. Wrap it in an object or in a DecisionJsonPart. See DecisionState.

Value: DecisionState

View source

public DecideTelemetry? Telemetry { get; set; }

Telemetry. Generic operation callbacks on the integration are not called.

Value: DecideTelemetry

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product