Skip to content

BatchOperationCall

Namespace: Vercel.AI.Operations

public sealed class BatchOperationCall

Arguments for a batch operation.

Inheritance: object

View source

BatchOperationCall(string?, JsonElement?, IReadOnlyDictionary<string, string>, CancellationToken, int?, string?, string?, IReadOnlyList<NormalizedBatchRequest>?)

Section titled “BatchOperationCall(string?, JsonElement?, IReadOnlyDictionary<string, string>, CancellationToken, int?, string?, string?, IReadOnlyList<NormalizedBatchRequest>?)”
public BatchOperationCall(string? batchId, JsonElement? providerOptions, IReadOnlyDictionary<string, string> headers, CancellationToken cancellationToken, int? limit = null, string? cursor = null, string? webhookUrl = null, IReadOnlyList<NormalizedBatchRequest>? requests = null)

Creates a call.

Parameters

Name Type Description
batchId string
providerOptions JsonElement?
headers IReadOnlyDictionary<string, string>
cancellationToken CancellationToken
limit int?
cursor string
webhookUrl string
requests IReadOnlyList<NormalizedBatchRequest>

View source

public string? BatchId { get; }

Batch id.

Value: string

View source

public CancellationToken CancellationToken { get; }

Cancellation token.

Value: CancellationToken

View source

public string? Cursor { get; }

Page cursor.

Value: string

View source

public IReadOnlyDictionary<string, string> Headers { get; }

Headers including the user-agent suffix.

Value: IReadOnlyDictionary<string, string>

View source

public int? Limit { get; }

Page size.

Value: int?

View source

public JsonElement? ProviderOptions { get; }

Provider options.

Value: JsonElement?

View source

public object? Receiver { get; set; }

True when this call was made on the batch API instance.

Value: object

View source

public IReadOnlyList<NormalizedBatchRequest>? Requests { get; }

Normalized requests.

Value: IReadOnlyList<NormalizedBatchRequest>

View source

public string? WebhookUrl { get; }

Webhook URL.

Value: string

View source

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