GatewayBatchApi
Namespace: Vercel.AI.Gateway
public sealed class GatewayBatchApi : BatchResultsApiBase, IBatchApiAI Gateway batch API. Downloads the JSONL results of a batch.
Inheritance: object → BatchResultsApiBase
Implements: IBatchApi
Properties
Section titled “Properties”Provider
Section titled “Provider”public override string Provider { get; }Provider id.
Value: string
Methods
Section titled “Methods”DoGetResultsAsync(BatchOperationCall, CancellationToken)
Section titled “DoGetResultsAsync(BatchOperationCall, CancellationToken)”public override Task<IAsyncEnumerable<BatchItem>> DoGetResultsAsync(BatchOperationCall call, CancellationToken cancellationToken)Opens the result stream. Errors found while opening, such as a batch that is not complete, throw from the task. Errors found while reading, such as a malformed row, throw from the stream.
Parameters
| Name | Type | Description |
|---|---|---|
call |
BatchOperationCall | |
cancellationToken |
CancellationToken |
Returns: Task<IAsyncEnumerable<BatchItem>>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product