Skip to content

EvaluationAnswer

Namespace: Vercel.AI.Operations

[Obsolete("Use DecisionAnswer instead.")]
public sealed class EvaluationAnswer : DecisionAnswer

Deprecated alias of DecisionAnswer.

Inheritance: object → DecisionAnswer

View source

EvaluationAnswer(string, string?, double?, double?, IReadOnlyDictionary<string, double>?)

Section titled “EvaluationAnswer(string, string?, double?, double?, IReadOnlyDictionary<string, double>?)”
public EvaluationAnswer(string type, string? choice = null, double? score = null, double? probability = null, IReadOnlyDictionary<string, double>? probabilities = null)

Creates an answer.

Parameters

Name Type Description
type string
choice string
score double?
probability double?
probabilities IReadOnlyDictionary<string, double>

View source

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