Creates a new OpenAI OCR capability adapter.
Owning provider instance used for initialization checks and merged config access.
Initialized OpenAI SDK client.
StaticOPENAI_JSON schema used to constrain OpenAI OCR tool output.
This adapter routes OCR through the Responses API and normalizes the tool
payload into NormalizedOCRDocument.
Practical format support is intentionally left to the provider. Local playground validation in this repo has been strongest for PDF plus common image/document inputs, while some less common image formats such as BMP and TIFF have failed provider-side.
StaticOPENAI_Executes OCR through the OpenAI Responses API.
Responsibilities:
NormalizedOCRDocumentUnified OCR request envelope.
Optional execution context. Unused directly in this adapter.
Optionalsignal: AbortSignalOptional cancellation signal.
Provider-normalized OCR artifacts.
OCR capability contract.