BatchItem
Namespace: Vercel.AI.Operations
public sealed class BatchItemOne raw batch item.
Inheritance: object
Constructors
Section titled “Constructors”BatchItem(string, string, string)
Section titled “BatchItem(string, string, string)”public BatchItem(string type, string id, string status)Creates an item.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string | |
id |
string | |
status |
string |
Properties
Section titled “Properties”ErrorCode
Section titled “ErrorCode”public string? ErrorCode { get; set; }Error code.
Value: string
ErrorMessage
Section titled “ErrorMessage”public string? ErrorMessage { get; set; }Error message.
Value: string
ErrorStatusCode
Section titled “ErrorStatusCode”public int? ErrorStatusCode { get; set; }HTTP status code of a failed provider response.
Value: int?
ErrorType
Section titled “ErrorType”public string? ErrorType { get; set; }Error type reported by the provider.
Value: string
public string Id { get; }Request id.
Value: string
public BatchImageGeneration? Image { get; set; }Image generation.
Value: BatchImageGeneration
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; set; }Provider metadata for a failed item.
Value: JsonElement?
Status
Section titled “Status”public string Status { get; }succeeded, failed, cancelled, or expired.
Value: string
public BatchTextGeneration? Text { get; set; }Text generation.
Value: BatchTextGeneration
public string Type { get; }text or image.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product