@squidcloud/client
    Preparing search index...

    Class AiFilesClient

    AiFilesClient provides methods for managing files with a specific AI provider. The provider is bound when the client is created via squid.ai().files(provider).

    Index

    Methods

    • Deletes a file from the AI provider's storage.

      Parameters

      • fileId: string

        The ID of the file to delete.

      Returns Promise<boolean>

      A Promise that resolves to true if the file was deleted, false if it didn't exist.

    • Uploads a file to the AI provider for use with AI features like code interpreter.

      Parameters

      Returns Promise<string>

      A Promise that resolves to the file ID assigned by the provider.