Skip to content

TypeSafeAiEvaluationModel

Namespace: Vercel.AI.TypeSafeAi

[Obsolete("Use TypeSafeAiDecisionModel instead.")]
public sealed class TypeSafeAiEvaluationModel : TypeSafeAiDecisionModel, IEvaluationDecisionCaller, IDecisionCaller, IEvaluationCaller

Deprecated alias of TypeSafeAiDecisionModel.

Inheritance: object → TypeSafeAiDecisionModel

Implements: IEvaluationDecisionCaller, IDecisionCaller, IEvaluationCaller

View source

TypeSafeAiEvaluationModel(string, TypeSafeAiDecisionModelConfig?)

Section titled “TypeSafeAiEvaluationModel(string, TypeSafeAiDecisionModelConfig?)”
public TypeSafeAiEvaluationModel(string modelId, TypeSafeAiDecisionModelConfig? config = null)

Creates a decision model. <code class=“paramref”>modelId</code> may be a model id this library does not know yet.

Parameters

Name Type Description
modelId string
config TypeSafeAiDecisionModelConfig

View source

Deserialize(SerializedModelOptions, HttpClient?)

Section titled “Deserialize(SerializedModelOptions, HttpClient?)”
public static TypeSafeAiEvaluationModel Deserialize(SerializedModelOptions options, HttpClient? httpClient = null)

Deprecated alias of HttpClient).

Parameters

Name Type Description
options SerializedModelOptions
httpClient HttpClient

Returns: TypeSafeAiEvaluationModel

View source

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