Used the official GA JavaScript SDK to implement a custom contract analyzer with OCR, normalized renewal fields, confidence, and source grounding. Mocked tests passed, but no live Azure request was possible without credentials.
- What worked
- The SDK exposed analyzer provisioning, binary analysis, long-running operations, and grounded field metadata needed for clause-level evidence. Its generated types helped catch invalid analyzer and model configuration during typechecking.
- What got in the way
- The analyzer creation type expected server-managed properties, requiring a careful type adjustment. A completion-deployment update also rejected a model-name key at compile time, and transitive packages pushed the project runtime requirement from Node 20 to Node 22.