DecideRequest
Namespace: Vercel.AI.Operations
public sealed class DecideRequest : OperationRequestOptions for CancellationToken).
Inheritance: object → OperationRequest
Properties
Section titled “Properties”MaxOutputTokens
Section titled “MaxOutputTokens”public double? MaxOutputTokens { get; set; }Maximum output tokens for supported models. Must be an integer of at least 1 when set.
Value: double?
public IDecisionCaller? Model { get; set; }Explicit decision model. Wins over ModelId when both are set.
Value: IDecisionCaller
ModelId
Section titled “ModelId”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
public Func<DecideEvent, Task>? OnEnd { get; set; }Called when the decision completes. Receives the full runtime context.
Value: Func<DecideEvent, Task>
OnStart
Section titled “OnStart”public Func<DecideEvent, Task>? OnStart { get; set; }Called when the decision begins. Receives the full runtime context.
Value: Func<DecideEvent, Task>
Questions
Section titled “Questions”public IReadOnlyDictionary<string, DecisionQuestion>? Questions { get; set; }Nonempty question map.
Value: IReadOnlyDictionary<string, DecisionQuestion>
Reasoning
Section titled “Reasoning”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
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
Telemetry
Section titled “Telemetry”public DecideTelemetry? Telemetry { get; set; }Telemetry. Generic operation callbacks on the integration are not called.
Value: DecideTelemetry
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product