public class BatchServiceImpl extends Object implements BatchService
| Constructor and Description |
|---|
BatchServiceImpl(AbstractAiClient zAiClient) |
| Modifier and Type | Method and Description |
|---|---|
BatchResponse |
cancelBatch(BatchRequest request)
Cancels a batch request.
|
BatchResponse |
cancelBatch(String batchId)
Cancels a batch request by ID.
|
BatchResponse |
createBatch(BatchCreateParams batchCreateParams)
Creates a batch request.
|
QueryBatchResponse |
listBatches(QueryBatchRequest queryBatchRequest)
Lists all batches.
|
BatchResponse |
retrieveBatch(BatchRequest request)
Retrieves a specific batch.
|
BatchResponse |
retrieveBatch(String batchId)
Retrieves a specific batch by ID.
|
public BatchServiceImpl(AbstractAiClient zAiClient)
public BatchResponse createBatch(BatchCreateParams batchCreateParams)
BatchServicecreateBatch in interface BatchServicebatchCreateParams - the batch creation parameterspublic BatchResponse retrieveBatch(BatchRequest request)
BatchServiceretrieveBatch in interface BatchServicerequest - the batch request containing the batch IDpublic BatchResponse retrieveBatch(String batchId)
BatchServiceretrieveBatch in interface BatchServicebatchId - the ID of the batch to retrievepublic QueryBatchResponse listBatches(QueryBatchRequest queryBatchRequest)
BatchServicelistBatches in interface BatchServicequeryBatchRequest - the query parameters for listing batchespublic BatchResponse cancelBatch(BatchRequest request)
BatchServicecancelBatch in interface BatchServicerequest - the batch request containing the batch IDpublic BatchResponse cancelBatch(String batchId)
BatchServicecancelBatch in interface BatchServicebatchId - the ID of the batch to cancelCopyright © 2025. All rights reserved.