Skip to content

TypeValidationException

Namespace: Vercel.AI.ProviderUtils

public sealed class TypeValidationException : Exception, ISerializable

A value did not match a JSON Schema.

Inheritance: object → Exception

Implements: ISerializable

View source

TypeValidationException(string, JsonElement?)

Section titled “TypeValidationException(string, JsonElement?)”
public TypeValidationException(string message, JsonElement? value)

Creates the exception.

Parameters

Name Type Description
message string
value JsonElement?

View source

public JsonElement? Value { get; }

Value that failed validation.

Value: JsonElement?

View source

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