finance-mgn - v1.4.1
    Preparing search index...
    • Validates and parses the LLM output using Zod.

      Parameters

      • llmOutput: string

        The raw JSON string output from the LLM.

      • promptFilename: string

        The name of the prompt file for error context.

      Returns { tokens: number; transactions: string[][] }

      The validated and parsed TransactionData object.

      An error if the output is invalid or misformatted.