Skip to content

BatchRequestOptions

Namespace: Vercel.AI.Operations

public sealed class BatchRequestOptions : OperationRequest

Options for batch operations.

Inheritance: object → OperationRequest

View source

public BatchReference? Batch { get; set; }

Batch reference.

Value: BatchReference

View source

public string? Cursor { get; set; }

Page cursor.

Value: string

View source

public Func<string, CancellationToken, Task<DownloadedMedia>>? Download { get; set; }

Downloads file URLs inside results.

Value: Func<string, CancellationToken, Task<DownloadedMedia>>

View source

public int? Limit { get; set; }

Page size.

Value: int?

View source

public ApiOrProvider<IBatchApi, IBatchProvider>? Provider { get; set; }

Batch API or a provider that exposes one. Null uses Default.

Value: ApiOrProvider&lt;IBatchApi, IBatchProvider&gt;

View source

public IReadOnlyList<BatchRequest>? Requests { get; set; }

Requests to start.

Value: IReadOnlyList<BatchRequest>

View source

public int? TimeoutMs { get; set; }

Total timeout in milliseconds.

Value: int?

View source

public IReadOnlyList<BatchTool>? Tools { get; set; }

Tools used to parse client tool calls. They are not executed.

Value: IReadOnlyList<BatchTool>

View source

public string? WebhookUrl { get; set; }

Webhook URL.

Value: string

View source

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