Skip to content

DecisionBooleanCriteria

Namespace: Vercel.AI.Operations

public sealed class DecisionBooleanCriteria : DecisionCriteria

Optional descriptions of the true and false outcomes of a boolean question. A side that is never set is left out of the wire request. A side set to null is sent as null.

Inheritance: object → DecisionCriteria

View source

public DecisionInput? False { get; init; }

Description of the false outcome.

Value: DecisionInput

View source

public bool HasFalse { get; }

True when False was set, including to null.

Value: bool

View source

public bool HasTrue { get; }

True when True was set, including to null.

Value: bool

View source

public DecisionInput? True { get; init; }

Description of the true outcome.

Value: DecisionInput

View source

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