Skip to content

DecisionUnsupportedQuestionTypeException

Namespace: Vercel.AI.Operations

public class DecisionUnsupportedQuestionTypeException : AiSdkException, ISerializable, IErrorMarkers

The decision model does not support a question type. It carries the ErrorMarker marker, so IsInstance(object) recognizes it.

Inheritance: object → Exception → AiSdkException

Implements: ISerializable, IErrorMarkers

Derived: EvaluationUnsupportedQuestionTypeException

View source

DecisionUnsupportedQuestionTypeException(string, string, string, string)

Section titled “DecisionUnsupportedQuestionTypeException(string, string, string, string)”
public DecisionUnsupportedQuestionTypeException(string questionId, string questionType, string provider, string modelId)

Creates the exception.

Parameters

Name Type Description
questionId string
questionType string
provider string
modelId string

View source

public string ErrorName { get; }

Upstream error name, AI_DecisionUnsupportedQuestionTypeError.

Value: string

View source

public string ModelId { get; }

Model id.

Value: string

View source

public string Provider { get; }

Provider id.

Value: string

View source

public string QuestionId { get; }

Question id.

Value: string

View source

public string QuestionType { get; }

Rejected question type.

Value: string

View source

public bool HasMarker(string marker)

Returns whether <code class=“paramref”>marker</code> is set to true.

Parameters

Name Type Description
marker string

Returns: bool

View source

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