TypeValidationException
Namespace: Vercel.AI.GenerateText
public sealed class TypeValidationException : AiSdkException, ISerializableTool context failed schema validation. Maps to TypeValidationError.
Inheritance: object → Exception → AiSdkException
Implements: ISerializable
Constructors
Section titled “Constructors”TypeValidationException(object?, string, string)
Section titled “TypeValidationException(object?, string, string)”public TypeValidationException(object? value, string field, string entityName)Creates the exception.
Parameters
| Name | Type | Description |
|---|---|---|
value |
object | |
field |
string | |
entityName |
string |
Properties
Section titled “Properties”Context
Section titled “Context”public ToolValidationContext Context { get; }Field and entity that failed.
Value: ToolValidationContext
public object? Value { get; }Value that failed validation.
Value: object
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product