Skip to content

ProviderStreamError

Namespace: Vercel.AI.Prompt

public sealed class ProviderStreamError

A provider stream payload that already carries status metadata.

Inheritance: object

View source

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?

View source

public object? Code { get; }

Provider code.

Value: object

View source

public object? Data { get; }

Original provider data.

Value: object

View source

public bool? IsRetryable { get; }

Whether the caller should retry.

Value: bool?

View source

public string Message { get; }

Error message.

Value: string

View source

public int? StatusCode { get; }

HTTP status.

Value: int?

View source

public string? Type { get; }

Provider type.

Value: string

View source

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