The ExtractAIHandler is a utility for document AI extraction. It integrates with an AI-powered backend to process files (e.g., invoices, PDFs, receipts) and extract structured JSON data. It supports Base64 file encoding, asynchronous extraction requests, job polling, and retrieval of processed results. This handler is useful for invoice extraction, document digitization, and structured data retrieval from files.Documentation Index
Fetch the complete documentation index at: https://docs.superagentx.ai/llms.txt
Use this file to discover all available pages before exploring further.
Example
To create theExtractAIHandler object with your Extract API credentials:
Reads a file from the given path and returns its Base64-encoded content.
Initiates a file extraction request and polls until results are available.
Fetches the extracted JSON data using the reference ID of a completed job.

