Package ai.doctruth.spi
package ai.doctruth.spi
Service Provider Interface (SPI) extension points for DocTruth. The library publishes
these interfaces and ships conservative default implementations (NOOP / IDENTITY).
Callers can plug in organization-specific implementations — signed audit JSON, event
listeners, region-aware transports — without changing the public API.
- Since:
- 0.1.0
-
ClassDescriptionA single audit event emitted by the library — extraction success, extraction failure, citation-below-threshold, etc.Callback the library invokes for every auditable event.Pixel bounding box for one OCR region on a rendered page image.Optional OCR backend, plugged into
PdfDocumentParserto recover text from scanned (image-only) pages.Output of oneocrcall.One OCR-recovered text region with its pixel bounding box on the rendered page image.Sign / wrap an audit JSON document for tamper-evident persistence.