Skip to content

BatchItemResult

Namespace: Vercel.AI.Operations

public sealed class BatchItemResult

Normalized batch item.

Inheritance: object

View source

public IReadOnlyList<BatchContentPart>? Content { get; set; }

Text content.

Value: IReadOnlyList<BatchContentPart>

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? FinishReason { get; set; }

Finish reason.

Value: string

View source

public string Id { get; set; }

Request id.

Value: string

View source

public OperationUsage? ImageUsage { get; set; }

Image usage.

Value: OperationUsage

View source

public IReadOnlyList<GeneratedImage>? Images { get; set; }

Images.

Value: IReadOnlyList<GeneratedImage>

View source

public JsonElement? ProviderMetadata { get; set; }

Provider metadata.

Value: JsonElement?

View source

public string? RawFinishReason { get; set; }

Raw finish reason.

Value: string

View source

public string? ResponseId { get; set; }

Response id.

Value: string

View source

public string? ResponseModelId { get; set; }

Response model id.

Value: string

View source

public string Status { get; set; }

Status.

Value: string

View source

public string? Text { get; set; }

Joined text.

Value: string

View source

public DateTime? Timestamp { get; set; }

Response timestamp.

Value: DateTime?

View source

public string Type { get; set; }

Item type.

Value: string

View source

public BatchUsage? Usage { get; set; }

Text usage.

Value: BatchUsage

View source

public IReadOnlyList<OperationWarning>? Warnings { get; set; }

Image warnings.

Value: IReadOnlyList<OperationWarning>

View source

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