finance-mgn - v2.1.0
    Preparing search index...

    Function labelTransactionsWithRetry

    • Labels transactions using an LLM with retry logic.

      Parameters

      • existingTransactions: Transaction[]

        The existing transactions.

      • newTransactions: Transaction[]

        The new transactions.

      • promptFilename: string

        The name of the prompt file.

      • maxTries: number = 3

        Maximum retry attempts (default: 2, for a total of 3 attempts).

      Returns Promise<Transaction[]>

      A promise that resolves to the labeled transactions.

      An error if the labeling process fails after all retries.