Pipeline Steps:

  1. Summarization: Condense the text using Prompt Chaining.
  2. Extraction: Use the summary and structured Pydantic output to extract precise entities (e.g., dates, amounts, parties).
  3. Calculation (Tool Use): Invoke a Calculator Tool to perform an arithmetic operation based on the extracted values.