9 Commits

Author SHA1 Message Date
Adrian Lyjak 02a0bc94f0 Fix index-contract API, add fake tests for parsing/invoice templates (#270)
- extract-reconcile-invoice: index_contract.py called files.get_file /
  files.read_file_content / files.upload_file (v1 SDK surface removed in
  v2), breaking every Upload Contract click. Switched to files.list +
  files.get + files.create.
- Added test_index_contract_workflow and test_metadata_workflow to
  exercise the full v2 surface (files.list, files.get, pipelines.upsert,
  pipelines.documents.upsert, configurations.retrieve).
- document-parsing and invoice-extraction had only placeholder tests —
  wired up llama-cloud-fake and added parametrized tests covering every
  tier/mode. invoice-extraction's test drives the HIL step.
- Bumped requires-python to >=3.12 on both (fake floor).
2026-04-24 16:52:40 -04:00
Adrian Lyjak db227f8370 Classify v2 fake, agent_data.create migration, downstream copier updates (#268) v0.2.1 2026-04-22 21:34:28 -04:00
Adrian Lyjak 59d8ad5af8 invoice-extraction: migrate workflow to llama-cloud v2 SDK (#252)
* invoice-extraction: migrate workflow to llama-cloud v2 SDK

- Bump llama-cloud pin from >=1.3.0,<2 to >=2.3.0,<3.
- Replace v1 client.extraction.extract(...) with v2 client.extract.create
  (inline ExtractConfigurationParam) + wait_for_completion.
- Translate v1 extraction_mode branches (base/advanced/premium) to v2
  ExtractConfigurationParam: base → tier=cost_effective, advanced →
  tier=agentic, premium → tier=agentic + cite_sources + confidence_scores.
- Drop the v1-only ExtractConfigParam import.
- Read extracted data from job.extract_result (dict or list) in place of
  result.data.
- Use a context manager for the file upload so the file handle is closed.
- Fix "\\n\\n" literal backslash-n in extraction_result and __main__.

Bumps invoice-extraction version 0.1.3 -> 0.2.0.

* drop spurious Any cast on job.extract_result
v0.2.0
2026-04-16 15:37:02 -04:00
Adrian Lyjak db73a39e25 Migrate from llama-cloud-services to llama-cloud SDK (#250)
* refactor: migrate invoice-extraction and document-parsing to llama-cloud

Replace llama-cloud-services with the v1 llama-cloud SDK used by other
templates. Both workflows now use AsyncLlamaCloud directly for parsing
and extraction. Breaking change for consumers; bumped template versions
to 0.2.0.

* refactor: use markdown_full expand in document-parsing and revert version bumps

Use expand=["markdown_full"] to get the full markdown output as a single
string, avoiding the need to join per-page markdown manually.

Revert the version bumps on document-parsing and invoice-extraction, they
will be jumped to 0.2.0 together with a subsequent change.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-14 20:51:20 -04:00
Adrian Lyjak 7130ca32f0 improve .env documentation comment (#182) v0.1.3 2026-01-23 12:42:52 -05:00
Adrian Lyjak 2b747fc187 Cursor behavior issue (#122)
* Bump ty dependency to 0.0.2

Co-authored-by: adrian <adrian@runllama.ai>

* Update template versions and fix agent context typing

Co-authored-by: adrian <adrian@runllama.ai>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
v0.1.2
2025-12-16 16:38:12 -05:00
Adrian Lyjak bfa1c45fdc fix: fix pytest dependency (#57) v0.1.1 2025-11-13 23:18:22 -06:00
Adrian Lyjak 06e6ccad0b Update all of the templates to remove test-proj, and migrate from vibe-llama templates v0.1.0 2025-09-27 18:38:32 -04:00
Adrian Lyjak 0b92d1f129 Initial commit 2025-09-26 22:47:59 -04:00