Skip to content

DecisionScoreCriteria

Namespace: Vercel.AI.Operations

public sealed class DecisionScoreCriteria : DecisionCriteria

Criteria of a score question: at least two ordered levels, indexed from zero. A null description means none.

Inheritance: object → DecisionCriteria

View source

DecisionScoreCriteria(IReadOnlyList<DecisionInput?>)

Section titled “DecisionScoreCriteria(IReadOnlyList<DecisionInput?>)”
public DecisionScoreCriteria(IReadOnlyList<DecisionInput?> levels)

Creates score criteria.

Parameters

Name Type Description
levels IReadOnlyList<DecisionInput>

View source

public override int Count { get; }

Number of options or levels. A boolean has none.

Value: int

View source

public IReadOnlyList<DecisionInput?> Levels { get; }

Level descriptions, lowest first.

Value: IReadOnlyList<DecisionInput>

View source

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