Skip to content

AnthropicEvaluationQuestion

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicEvaluationQuestion

One evaluation question.

Inheritance: object

View source

AnthropicEvaluationQuestion(string, string, IReadOnlyList<string>?)

Section titled “AnthropicEvaluationQuestion(string, string, IReadOnlyList<string>?)”
public AnthropicEvaluationQuestion(string name, string type, IReadOnlyList<string>? criteria)

Creates a question. <code class=“paramref”>type</code> is choice, score, or boolean.

Parameters

Name Type Description
name string
type string
criteria IReadOnlyList<string>

View source

public IReadOnlyList<string> Criteria { get; }

Choice labels or score level labels, in insertion order.

Value: IReadOnlyList<string>

View source

public string Name { get; }

Question name.

Value: string

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