DecisionModelCall
Namespace: Vercel.AI.Operations
public class DecisionModelCallArguments for doDecide.
Inheritance: object
Derived: EvaluationModelCall
Constructors
Section titled “Constructors”DecisionModelCall(IReadOnlyList<DecisionModelStatePart>, IReadOnlyDictionary<string, DecisionQuestion>, JsonElement, IReadOnlyDictionary<string, string>, CancellationToken, double?, string?)
Section titled “DecisionModelCall(IReadOnlyList<DecisionModelStatePart>, IReadOnlyDictionary<string, DecisionQuestion>, JsonElement, IReadOnlyDictionary<string, string>, CancellationToken, double?, string?)”public DecisionModelCall(IReadOnlyList<DecisionModelStatePart> state, IReadOnlyDictionary<string, DecisionQuestion> questions, JsonElement providerOptions, IReadOnlyDictionary<string, string> headers, CancellationToken cancellationToken, double? maxOutputTokens = null, string? reasoning = null)Creates a call.
Parameters
| Name | Type | Description |
|---|---|---|
state |
IReadOnlyList<DecisionModelStatePart> | |
questions |
IReadOnlyDictionary<string, DecisionQuestion> | |
providerOptions |
JsonElement | |
headers |
IReadOnlyDictionary<string, string> | |
cancellationToken |
CancellationToken | |
maxOutputTokens |
double? | |
reasoning |
string |
Properties
Section titled “Properties”CancellationToken
Section titled “CancellationToken”public CancellationToken CancellationToken { get; }Cancellation token.
Value: CancellationToken
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Headers including the user-agent suffix.
Value: IReadOnlyDictionary<string, string>
MaxOutputTokens
Section titled “MaxOutputTokens”public double? MaxOutputTokens { get; }Maximum output tokens, an integer of at least 1. Null when the caller set none.
Value: double?
ProviderOptions
Section titled “ProviderOptions”public JsonElement ProviderOptions { get; }Provider options.
Value: JsonElement
Questions
Section titled “Questions”public IReadOnlyDictionary<string, DecisionQuestion> Questions { get; }Questions.
Value: IReadOnlyDictionary<string, DecisionQuestion>
Reasoning
Section titled “Reasoning”public string? Reasoning { get; }Reasoning effort: provider-default, none, minimal, low, medium, high, xhigh, or max.
Language-model adapters default to none when it is null. Native decision providers report an unsupported-setting warning.
Value: string
public IReadOnlyList<DecisionModelStatePart> State { get; }Shared state as an ordered list of text, JSON, and file parts. See CancellationToken).
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product