Skip to content

InvalidResponseDataException

Namespace: Vercel.AI.Operations

public sealed class InvalidResponseDataException : AiSdkException, ISerializable

The provider response did not match the expected shape.

Inheritance: object → Exception → AiSdkException

Implements: ISerializable

View source

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

View source

public object? Data { get; }

Response payload that failed validation.

Value: object

View source

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