Skip to content

AnthropicEvaluationAnswer

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicEvaluationAnswer

One parsed answer.

Inheritance: object

View source

AnthropicEvaluationAnswer(string, string?, double?, double?)

Section titled “AnthropicEvaluationAnswer(string, string?, double?, double?)”
public AnthropicEvaluationAnswer(string type, string? choice, double? score, double? probability)

Creates an answer.

Parameters

Name Type Description
type string
choice string
score double?
probability double?

View source

public string? Choice { get; }

Choice label.

Value: string

View source

public double? Probability { get; }

Boolean probability.

Value: double?

View source

public double? Score { get; }

Score.

Value: double?

View source

public string Type { get; }

choice, score, or boolean.

Value: string

View source

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