feat(clients): OCRClient + GenAIClient protocols + fakes #10
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/client-protocols"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Chunk 2, Task 2.2.
Adds
ix.ocrandix.genaipackages with runtime-checkable Protocols and hermetic Fake clients per spec §6.2/§6.3. Real Surya/Ollama clients land in Chunk 4.Tests
8 new unit tests (120 total) — protocol conformance via isinstance, canned-return behaviour, default/explicit usage + model_name, and raise_on_call propagation.
uv run pytest tests/unit -q→ 120 passed.uv run ruff check src tests→ clean.Merge gate
Forgejo Actions trigger bug is still in effect — local test + ruff are the gate.