InvalidResponseDataException
Namespace: Vercel.AI.Operations
public sealed class InvalidResponseDataException : AiSdkException, ISerializableThe provider response did not match the expected shape.
Inheritance: object → Exception → AiSdkException
Implements: ISerializable
Constructors
Section titled “Constructors”InvalidResponseDataException(object?, string)
Section titled “InvalidResponseDataException(object?, string)”public InvalidResponseDataException(object? data, string message)Creates the exception.
Parameters
| Name | Type | Description |
|---|---|---|
data |
object | |
message |
string |
Properties
Section titled “Properties”public object? Data { get; }Response payload that failed validation.
Value: object
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product