ProviderStreamError
Namespace: Vercel.AI.Prompt
public sealed class ProviderStreamErrorA provider stream payload that already carries status metadata.
Inheritance: object
Constructors
Section titled “Constructors”ProviderStreamError(string, object?, string?, object?, int?, bool?)
Section titled “ProviderStreamError(string, object?, string?, object?, int?, bool?)”public ProviderStreamError(string message, object? data, string? type = null, object? code = null, int? statusCode = null, bool? isRetryable = null)Creates a provider stream error.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string | |
data |
object | |
type |
string | |
code |
object | |
statusCode |
int? | |
isRetryable |
bool? |
Properties
Section titled “Properties”public object? Code { get; }Provider code.
Value: object
public object? Data { get; }Original provider data.
Value: object
IsRetryable
Section titled “IsRetryable”public bool? IsRetryable { get; }Whether the caller should retry.
Value: bool?
Message
Section titled “Message”public string Message { get; }Error message.
Value: string
StatusCode
Section titled “StatusCode”public int? StatusCode { get; }HTTP status.
Value: int?
public string? Type { get; }Provider type.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product