ErrorStreamPart
Namespace: Vercel.AI.Provider
public sealed class ErrorStreamPart : LanguageModelStreamPartA stream error from the provider.
Inheritance: object → LanguageModelStreamPart
Constructors
Section titled “Constructors”ErrorStreamPart(string)
Section titled “ErrorStreamPart(string)”public ErrorStreamPart(string message)Creates an error part.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string |
ErrorStreamPart(ProviderStreamError)
Section titled “ErrorStreamPart(ProviderStreamError)”public ErrorStreamPart(ProviderStreamError error)Creates an error part that carries the provider’s structured error.
Parameters
| Name | Type | Description |
|---|---|---|
error |
ProviderStreamError |
Properties
Section titled “Properties”public ProviderStreamError? Error { get; }The provider’s structured error (type, code, status, retry flag, and the original data).
Null when the provider reported only a message.
Value: ProviderStreamError
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