PreservedStreamError
Namespace: Vercel.AI.Prompt
public sealed class PreservedStreamErrorAn error-shaped value that must be returned unchanged.
Inheritance: object
Constructors
Section titled “Constructors”PreservedStreamError(string, bool)
Section titled “PreservedStreamError(string, bool)”public PreservedStreamError(string message, bool isAiSdkError)Creates a preserved value.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string | |
isAiSdkError |
bool |
Properties
Section titled “Properties”IsAiSdkError
Section titled “IsAiSdkError”public bool IsAiSdkError { get; }True when the value stands in for a cross-realm AI SDK error.
Value: bool
Message
Section titled “Message”public string Message { get; }Error message.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product