DecisionUnsupportedQuestionTypeError
Namespace: Vercel.AI.Util
public class DecisionUnsupportedQuestionTypeError : AiSdkError, ISerializable, IErrorMarkersA decision model does not support the type of a requested question.
Inheritance: object → Exception → AiSdkError
Implements: ISerializable, IErrorMarkers
Derived: EvaluationUnsupportedQuestionTypeError
Constructors
Section titled “Constructors”DecisionUnsupportedQuestionTypeError(string, string, string, string, string?)
Section titled “DecisionUnsupportedQuestionTypeError(string, string, string, string, string?)”public DecisionUnsupportedQuestionTypeError(string questionId, string questionType, string provider, string modelId, string? message = null)Creates the error for the unsupported question.
Parameters
| Name | Type | Description |
|---|---|---|
questionId |
string | |
questionType |
string | |
provider |
string | |
modelId |
string | |
message |
string |
Fields
Section titled “Fields”ErrorMarker
Section titled “ErrorMarker”public const string ErrorMarker = "vercel.ai.error.AI_DecisionUnsupportedQuestionTypeError"Marker for IsInstance(object).
Value: string
Properties
Section titled “Properties”ModelId
Section titled “ModelId”public string ModelId { get; }Decision model id.
Value: string
Provider
Section titled “Provider”public string Provider { get; }Decision provider id.
Value: string
QuestionId
Section titled “QuestionId”public string QuestionId { get; }Question identifier.
Value: string
QuestionType
Section titled “QuestionType”public string QuestionType { get; }Question type the model rejected.
Value: string
Methods
Section titled “Methods”IsInstance(object?)
Section titled “IsInstance(object?)”public static bool IsInstance(object? error)Returns whether <code class=“paramref”>error</code> carries this error’s marker.
Parameters
| Name | Type | Description |
|---|---|---|
error |
object |
Returns: bool
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product