Client

Create an Ovrin client with New, configure providers and limits, and override any per-call option. Every method is safe for concurrent use.

The Client owns the model, OCR, renderer, and runtime configuration used during an extraction.

Construction

client := ovrin.New(opts...)

Purpose

A client is the shared runtime policy for extraction. It is the place where the document-processing pipeline is configured and scoped.

Example

client := ovrin.New(
    ovrin.WithModel(model),
    ovrin.WithOCR(ocr),
    ovrin.WithRenderer(renderer),
)

Notes

  • the core keeps provider boundaries explicit
  • the client is safe for reuse
  • provider selection is intentionally separated from the extraction logic