API calls for all endpoints tagged Files.
Summary
Functions
Delete a file Deletes a file.
Download file content Downloads the content of a file.
List files Lists files for a provider.
Retrieve file metadata Retrieves metadata for a specific file.
Upload a file Uploads a file to be used with batch operations or other features.
Functions
@spec delete_file( Tesla.Env.client(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.DeleteFile200Response.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Delete a file Deletes a file.
Parameters
connection(ExBifrost.Connection): Connection to serverfile_id(String.t): The ID of the file to deleteprovider(ModelProvider): The provider of the fileopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.DeleteFile200Response.t}on success{:error, Tesla.Env.t}on failure
@spec get_file_content( Tesla.Env.client(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, String.t()} | {:error, Tesla.Env.t()}
Download file content Downloads the content of a file.
Parameters
connection(ExBifrost.Connection): Connection to serverfile_id(String.t): The ID of the fileprovider(ModelProvider): The provider of the fileopts(keyword): Optional parameters
Returns
{:ok, String.t}on success{:error, Tesla.Env.t}on failure
@spec list_files(Tesla.Env.client(), ExBifrost.Model.ModelProvider.t(), keyword()) :: {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, ExBifrost.Model.FileListResponse.t()} | {:error, Tesla.Env.t()}
List files Lists files for a provider.
Parameters
connection(ExBifrost.Connection): Connection to serverx_model_provider(ModelProvider): Provider to list files foropts(keyword): Optional parameters:purpose(String.t): Filter by purpose:limit(integer()): Maximum number of files to return:after(String.t): Cursor for pagination:order(String.t): Sort order (asc/desc)
Returns
{:ok, ExBifrost.Model.FileListResponse.t}on success{:error, Tesla.Env.t}on failure
@spec retrieve_file( Tesla.Env.client(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, ExBifrost.Model.RetrieveFile200Response.t()} | {:error, Tesla.Env.t()}
Retrieve file metadata Retrieves metadata for a specific file.
Parameters
connection(ExBifrost.Connection): Connection to serverfile_id(String.t): The ID of the fileprovider(ModelProvider): The provider of the fileopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.RetrieveFile200Response.t}on success{:error, Tesla.Env.t}on failure
@spec upload_file(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, ExBifrost.Model.FileUploadResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Upload a file Uploads a file to be used with batch operations or other features.
Parameters
connection(ExBifrost.Connection): Connection to serverfile(String.t):purpose(String.t):opts(keyword): Optional parameters:provider(ExBifrost.Model.ModelProvider.t):
Returns
{:ok, ExBifrost.Model.FileUploadResponse.t}on success{:error, Tesla.Env.t}on failure