Skip to content

BatchItem

Namespace: Vercel.AI.Operations

public sealed class BatchItem

One raw batch item.

Inheritance: object

View source

public BatchItem(string type, string id, string status)

Creates an item.

Parameters

Name Type Description
type string
id string
status string

View source

public string? ErrorCode { get; set; }

Error code.

Value: string

View source

public string? ErrorMessage { get; set; }

Error message.

Value: string

View source

public int? ErrorStatusCode { get; set; }

HTTP status code of a failed provider response.

Value: int?

View source

public string? ErrorType { get; set; }

Error type reported by the provider.

Value: string

View source

public string Id { get; }

Request id.

Value: string

View source

public BatchImageGeneration? Image { get; set; }

Image generation.

Value: BatchImageGeneration

View source

public JsonElement? ProviderMetadata { get; set; }

Provider metadata for a failed item.

Value: JsonElement?

View source

public string Status { get; }

succeeded, failed, cancelled, or expired.

Value: string

View source

public BatchTextGeneration? Text { get; set; }

Text generation.

Value: BatchTextGeneration

View source

public string Type { get; }

text or image.

Value: string

View source

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