DecisionChoiceCriteria
Namespace: Vercel.AI.Operations
public sealed class DecisionChoiceCriteria : DecisionCriteriaCriteria of a choice question: a nonempty map of option names to descriptions. A null description means none.
Inheritance: object → DecisionCriteria
Constructors
Section titled “Constructors”DecisionChoiceCriteria(IReadOnlyDictionary<string, DecisionInput?>)
Section titled “DecisionChoiceCriteria(IReadOnlyDictionary<string, DecisionInput?>)”public DecisionChoiceCriteria(IReadOnlyDictionary<string, DecisionInput?> options)Creates choice criteria.
Parameters
| Name | Type | Description |
|---|---|---|
options |
IReadOnlyDictionary<string, DecisionInput> |
Properties
Section titled “Properties”public override int Count { get; }Number of options or levels. A boolean has none.
Value: int
Options
Section titled “Options”public IReadOnlyDictionary<string, DecisionInput?> Options { get; }Option names with their descriptions, in order.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product