Validates and parses the LLM output using Zod.
The raw JSON string output from the LLM.
The name of the prompt file for error context.
The validated and parsed TransactionData object.
TransactionData
An error if the output is invalid or misformatted.
Validates and parses the LLM output using Zod.