Skip to content

Align Python SDK contracts with retrieval and job APIs#13

Merged
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/python-sdk-contract-alignment
Apr 22, 2026
Merged

Align Python SDK contracts with retrieval and job APIs#13
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/python-sdk-contract-alignment

Conversation

@suguanYang
Copy link
Copy Markdown
Collaborator

Summary

  • expand retrieval.query(...) to accept the current API request schema and expose router_used on responses
  • stop exposing document_id on Job create responses while preserving published document scope on JobResult and loaded ParseResult
  • update README examples and tests to use job_result.document_id instead of job.document_id

Validation

  • uv run pytest tests/test_jobs.py tests/test_retrieval.py tests/test_parse.py tests/test_models.py -q
  • uv run pytest -q
  • uv run ruff check .
  • uv run mypy src

@suguanYang suguanYang merged commit 29c08f0 into main Apr 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant