API calls for all endpoints tagged Batch.
Summary
Functions
Cancel a batch job Cancels a batch job.
Create a batch job Creates a batch job for asynchronous processing.
Get batch results Retrieves results from a completed batch job.
List batch jobs Lists batch jobs for a provider.
Retrieve a batch job Retrieves a specific batch job by ID.
Functions
@spec cancel_batch( Tesla.Env.client(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, ExBifrost.Model.CancelBatch200Response.t()} | {:error, Tesla.Env.t()}
Cancel a batch job Cancels a batch job.
Parameters
connection(ExBifrost.Connection): Connection to serverbatch_id(String.t): The ID of the batch to cancelprovider(ModelProvider): The provider of the batchopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.CancelBatch200Response.t}on success{:error, Tesla.Env.t}on failure
@spec create_batch( Tesla.Env.client(), ExBifrost.Model.BatchCreateRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.BatchCreateResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create a batch job Creates a batch job for asynchronous processing.
Parameters
connection(ExBifrost.Connection): Connection to serverbatch_create_request(BatchCreateRequest):opts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.BatchCreateResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_batch_results( Tesla.Env.client(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, ExBifrost.Model.GetBatchResults200Response.t()} | {:error, Tesla.Env.t()}
Get batch results Retrieves results from a completed batch job.
Parameters
connection(ExBifrost.Connection): Connection to serverbatch_id(String.t): The ID of the batchprovider(ModelProvider): The provider of the batchopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.GetBatchResults200Response.t}on success{:error, Tesla.Env.t}on failure
@spec list_batches(Tesla.Env.client(), ExBifrost.Model.ModelProvider.t(), keyword()) :: {:ok, ExBifrost.Model.BatchListResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
List batch jobs Lists batch jobs for a provider.
Parameters
connection(ExBifrost.Connection): Connection to serverprovider(ModelProvider): Provider to list batches foropts(keyword): Optional parameters:limit(integer()): Maximum number of batches to return:after(String.t): Cursor for pagination:before(String.t): Cursor for pagination
Returns
{:ok, ExBifrost.Model.BatchListResponse.t}on success{:error, Tesla.Env.t}on failure
@spec retrieve_batch( Tesla.Env.client(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.BatchRetrieveResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Retrieve a batch job Retrieves a specific batch job by ID.
Parameters
connection(ExBifrost.Connection): Connection to serverbatch_id(String.t): The ID of the batch to retrieveprovider(ModelProvider): The provider of the batchopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.BatchRetrieveResponse.t}on success{:error, Tesla.Env.t}on failure