feat: integrate Legalize API for Argentine law context

↗ view on GitHub · David Wozniak · 2026-05-27 · 619befc8

- Add @legalize-dev/sdk dependency
- Create legalize.ts: SDK client wrapper with 24h in-memory cache
- Create legalContext.ts: builds legal context from search results
- Wire legal context into chat route (via buildMessages systemPromptExtra)
- Wire legal context into tabular review route
- Update all system prompts from Mike to Inquilino
- Add LEGALIZE_API_KEY to .env.example
- Intent detection: rent_review / expense_audit / lease_summary
Repository wozhub/inquilino
Author David Wozniak <2332920+wozhub@users.noreply.github.com>
Authored
Parents 7e87e939
Stats 8 files changed , +240 , -3
Part of Legalize API integration for Argentine law context

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-619befc8.md from inside the repo you want the change in.

⬇ Download capture-commit-619befc8.md