Class for managing files used in batch inference operations.

Provides methods to upload, retrieve, list, download, and manage files associated with batch inference jobs.

Constructors

Properties

The BatchInference client instance.

Methods

  • Download file content to local filesystem.

    Downloads the content of a file and saves it to the local filesystem. The file must be in JSONL format.

    Parameters

    Returns Promise<string>

    A promise that resolves to a success message with the file path

    Throws

    If the file already exists or if the filename doesn't end with .jsonl

  • Private

    Check if a file exists at the specified path.

    Parameters

    • path: string

      The file path to check.

    Returns Promise<boolean>

    A promise that resolves to true if the file exists, false otherwise