Skip to content

AnthropicEvaluationResult

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicEvaluationResult

Evaluation call result.

Inheritance: object

View source

AnthropicEvaluationResult(IReadOnlyDictionary<string, AnthropicEvaluationAnswer>, LanguageModelUsage, IReadOnlyDictionary<string, string>, string)

Section titled “AnthropicEvaluationResult(IReadOnlyDictionary<string, AnthropicEvaluationAnswer>, LanguageModelUsage, IReadOnlyDictionary<string, string>, string)”
public AnthropicEvaluationResult(IReadOnlyDictionary<string, AnthropicEvaluationAnswer> answers, LanguageModelUsage usage, IReadOnlyDictionary<string, string> headers, string provider)

Creates a result.

Parameters

Name Type Description
answers IReadOnlyDictionary<string, AnthropicEvaluationAnswer>
usage LanguageModelUsage
headers IReadOnlyDictionary<string, string>
provider string

View source

public IReadOnlyDictionary<string, AnthropicEvaluationAnswer> Answers { get; }

Answers keyed by question name.

Value: IReadOnlyDictionary<string, AnthropicEvaluationAnswer>

View source

public IReadOnlyDictionary<string, string> Headers { get; }

Response headers.

Value: IReadOnlyDictionary<string, string>

View source

public string Provider { get; }

Always anthropic.evaluation for the model that produced this result.

Value: string

View source

public LanguageModelUsage Usage { get; }

Converted token usage.

Value: LanguageModelUsage

View source

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