BatchOperationCall
Namespace: Vercel.AI.Operations
public sealed class BatchOperationCallArguments for a batch operation.
Inheritance: object
Constructors
Section titled “Constructors”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> |
Properties
Section titled “Properties”BatchId
Section titled “BatchId”public string? BatchId { get; }Batch id.
Value: string
CancellationToken
Section titled “CancellationToken”public CancellationToken CancellationToken { get; }Cancellation token.
Value: CancellationToken
Cursor
Section titled “Cursor”public string? Cursor { get; }Page cursor.
Value: string
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Headers including the user-agent suffix.
Value: IReadOnlyDictionary<string, string>
public int? Limit { get; }Page size.
Value: int?
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; }Provider options.
Value: JsonElement?
Receiver
Section titled “Receiver”public object? Receiver { get; set; }True when this call was made on the batch API instance.
Value: object
Requests
Section titled “Requests”public IReadOnlyList<NormalizedBatchRequest>? Requests { get; }Normalized requests.
Value: IReadOnlyList<NormalizedBatchRequest>
WebhookUrl
Section titled “WebhookUrl”public string? WebhookUrl { get; }Webhook URL.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product