Skip to content

DecisionModelCall

Namespace: Vercel.AI.Operations

public class DecisionModelCall

Arguments for doDecide.

Inheritance: object

Derived: EvaluationModelCall

View source

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

View source

public CancellationToken CancellationToken { get; }

Cancellation token.

Value: CancellationToken

View source

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

Headers including the user-agent suffix.

Value: IReadOnlyDictionary<string, string>

View source

public double? MaxOutputTokens { get; }

Maximum output tokens, an integer of at least 1. Null when the caller set none.

Value: double?

View source

public JsonElement ProviderOptions { get; }

Provider options.

Value: JsonElement

View source

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

Questions.

Value: IReadOnlyDictionary<string, DecisionQuestion>

View source

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

View source

public IReadOnlyList<DecisionModelStatePart> State { get; }

Shared state as an ordered list of text, JSON, and file parts. See CancellationToken).

Value: IReadOnlyList<DecisionModelStatePart>

View source

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