Skip to content

PreservedStreamError

Namespace: Vercel.AI.Prompt

public sealed class PreservedStreamError

An error-shaped value that must be returned unchanged.

Inheritance: object

View source

public PreservedStreamError(string message, bool isAiSdkError)

Creates a preserved value.

Parameters

Name Type Description
message string
isAiSdkError bool

View source

public bool IsAiSdkError { get; }

True when the value stands in for a cross-realm AI SDK error.

Value: bool

View source

public string Message { get; }

Error message.

Value: string

View source

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