Skip to content

DecisionUnsupportedQuestionTypeError

Namespace: Vercel.AI.Util

public class DecisionUnsupportedQuestionTypeError : AiSdkError, ISerializable, IErrorMarkers

A decision model does not support the type of a requested question.

Inheritance: object → Exception → AiSdkError

Implements: ISerializable, IErrorMarkers

Derived: EvaluationUnsupportedQuestionTypeError

View source

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

View source

public const string ErrorMarker = "vercel.ai.error.AI_DecisionUnsupportedQuestionTypeError"

Marker for IsInstance(object).

Value: string

View source

public string ModelId { get; }

Decision model id.

Value: string

View source

public string Provider { get; }

Decision provider id.

Value: string

View source

public string QuestionId { get; }

Question identifier.

Value: string

View source

public string QuestionType { get; }

Question type the model rejected.

Value: string

View source

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

View source

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