Expand description
Batch processing: start_batch, get_batch_status,
get_batch_results, cancel_batch and list_batches.
Design: docs/01-architecture/11-other-modalities.md §8.
Structs§
- Batch
Cancel Result - Result of cancelling a batch.
- Batch
Error - Error reported for a batch or a batch item.
- BatchId
- Identifier of a provider batch job.
- Batch
List Item - One entry of a batch listing.
- Batch
List Result - Result of listing batches.
- Batch
Request Counts - Request counts of a batch.
- Batch
Start Options - Options for starting a batch.
- Batch
Start Result - Result of starting a batch.
- Batch
Status - Normalized status of a batch.
- Batch
Warning - A warning attached to a batch start, optionally scoped to one request.
- Cancel
Batch - Builder returned by
cancel_batch;.awaitruns the call. - GetBatch
Results - Builder returned by
get_batch_results;.awaitopens the stream. - GetBatch
Status - Builder returned by
get_batch_status;.awaitruns the call. - Image
Batch Request - An image generation request of a batch.
- Image
Batch Result - Successful image item of a batch.
- List
Batches - Builder returned by
list_batches;.awaitruns the call. - Start
Batch - Builder returned by
start_batch;.awaitsubmits the batch. - Text
Batch Request - A text generation request of a batch (the settings part of
generate_text, without callbacks or cancellation). - Text
Batch Result - Successful text item of a batch: the shape of one
generate_textstep.
Enums§
- Batch
Item - Outcome of one request, tagged by
status. - Batch
Request - A request of a batch.
- Batch
Result Item - One item of
get_batch_results. - Batch
State - Normalized batch state.
- Model
Batch Request - One request of a batch, tagged by
type.
Functions§
- cancel_
batch - Cancels a batch. Fails with an unsupported functionality error when the provider does not implement cancellation.
- get_
batch_ results - Streams the results of a finished batch.
- get_
batch_ status - Fetches the normalized status of a batch.
- list_
batches - Lists batches. Fails with an unsupported functionality error when the provider does not implement listing.
- start_
batch - Starts a batch.
Type Aliases§
- Batch
Results - The stream returned by
get_batch_results.